forked from M-Labs/artiq
nix: allow overriding artiq-board build command
This commit is contained in:
parent
6ad2e13515
commit
ea2956bcb8
|
@ -2,7 +2,7 @@
|
||||||
# nix.sandboxPaths = ["/opt"];
|
# nix.sandboxPaths = ["/opt"];
|
||||||
|
|
||||||
{ pkgs ? import <nixpkgs> {}}:
|
{ pkgs ? import <nixpkgs> {}}:
|
||||||
{ target, variant }:
|
{ target, variant, buildCommand ? "python -m artiq.gateware.targets.${target} -V ${variant}" }:
|
||||||
|
|
||||||
let
|
let
|
||||||
artiqPkgs = import ./default.nix { inherit pkgs; };
|
artiqPkgs = import ./default.nix { inherit pkgs; };
|
||||||
|
@ -47,7 +47,7 @@ in pkgs.stdenv.mkDerivation {
|
||||||
phases = [ "buildPhase" "installPhase" ];
|
phases = [ "buildPhase" "installPhase" ];
|
||||||
buildPhase =
|
buildPhase =
|
||||||
''
|
''
|
||||||
${buildenv}/bin/artiq-dev -c "CARGO_HOME=${cargoVendored} python -m artiq.gateware.targets.${target} -V ${variant}"
|
${buildenv}/bin/artiq-dev -c "CARGO_HOME=${cargoVendored} ${buildCommand}"
|
||||||
'';
|
'';
|
||||||
installPhase =
|
installPhase =
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in New Issue