forked from M-Labs/nix-scripts
artiq: add dependency jsonschema
Support for resolution of https://github.com/m-labs/artiq/issues/1474
This commit is contained in:
parent
58b49c173e
commit
0585a2dd3f
|
@ -26,6 +26,7 @@ let
|
||||||
|
|
||||||
let
|
let
|
||||||
artiq-fast = import ./fast { inherit pkgs; };
|
artiq-fast = import ./fast { inherit pkgs; };
|
||||||
|
ddbDeps = pkgs.python3.withPackages (ps: [ ps.jsonschema ]);
|
||||||
|
|
||||||
target = "kasli";
|
target = "kasli";
|
||||||
variants = [
|
variants = [
|
||||||
|
@ -144,7 +145,7 @@ let
|
||||||
} // (pkgs.lib.optionalAttrs ((builtins.fromJSON (builtins.readFile json)).base == "standalone") {
|
} // (pkgs.lib.optionalAttrs ((builtins.fromJSON (builtins.readFile json)).base == "standalone") {
|
||||||
"device-db-\''${target}-\''${variant}" = pkgs.stdenv.mkDerivation {
|
"device-db-\''${target}-\''${variant}" = pkgs.stdenv.mkDerivation {
|
||||||
name = "device-db-\''${target}-\''${variant}";
|
name = "device-db-\''${target}-\''${variant}";
|
||||||
buildInputs = [ artiq-fast.artiq ];
|
buildInputs = [ artiq-fast.artiq ddbDeps ];
|
||||||
phases = [ "buildPhase" ];
|
phases = [ "buildPhase" ];
|
||||||
buildPhase = "
|
buildPhase = "
|
||||||
mkdir \$out
|
mkdir \$out
|
||||||
|
@ -203,7 +204,7 @@ let
|
||||||
(system: crates: pkgs.lib.attrsets.nameValuePair ("device-db-" + system)
|
(system: crates: pkgs.lib.attrsets.nameValuePair ("device-db-" + system)
|
||||||
(pkgs.stdenv.mkDerivation {
|
(pkgs.stdenv.mkDerivation {
|
||||||
name = "device-db-\''${system}";
|
name = "device-db-\''${system}";
|
||||||
buildInputs = [ artiq-fast.artiq ];
|
buildInputs = [ artiq-fast.artiq ddbDeps ];
|
||||||
phases = [ "buildPhase" ];
|
phases = [ "buildPhase" ];
|
||||||
buildPhase = "
|
buildPhase = "
|
||||||
mkdir \$out
|
mkdir \$out
|
||||||
|
|
|
@ -78,7 +78,11 @@ let
|
||||||
installPath = builtins.unsafeDiscardStringContext "${pkgs.python3Packages.python.sitePackages}/artiq/board-support/${target}-${variant}";
|
installPath = builtins.unsafeDiscardStringContext "${pkgs.python3Packages.python.sitePackages}/artiq/board-support/${target}-${variant}";
|
||||||
pythonEnv = pkgs.python3.withPackages (ps: with ps; [
|
pythonEnv = pkgs.python3.withPackages (ps: with ps; [
|
||||||
jinja2 numpy artiqpkgs.migen artiqpkgs.microscope artiqpkgs.misoc artiqpkgs.jesd204b artiqpkgs.artiq
|
jinja2 numpy artiqpkgs.migen artiqpkgs.microscope artiqpkgs.misoc artiqpkgs.jesd204b artiqpkgs.artiq
|
||||||
]);
|
] ++
|
||||||
|
(if target == "kasli"
|
||||||
|
then [ jsonschema ]
|
||||||
|
else []
|
||||||
|
));
|
||||||
|
|
||||||
generatedSources =
|
generatedSources =
|
||||||
pkgs.stdenv.mkDerivation {
|
pkgs.stdenv.mkDerivation {
|
||||||
|
|
Loading…
Reference in New Issue