artiq-fast: add jsonschema dependency to artiq #44
@ -9,7 +9,7 @@ let
|
|||||||
artiqSrc = import (artiq-fast + "/pkgs/artiq-src.nix") { fetchgit = pkgs.fetchgit; };
|
artiqSrc = import (artiq-fast + "/pkgs/artiq-src.nix") { fetchgit = pkgs.fetchgit; };
|
||||||
artiqpkgs = import artiq-fast { inherit pkgs; };
|
artiqpkgs = import artiq-fast { inherit pkgs; };
|
||||||
pythonEnv = pkgs.python3.withPackages (ps: with ps; [
|
pythonEnv = pkgs.python3.withPackages (ps: with ps; [
|
||||||
jinja2 jsonschema numpy artiqpkgs.migen artiqpkgs.microscope artiqpkgs.misoc artiqpkgs.jesd204b artiqpkgs.artiq
|
jinja2 numpy artiqpkgs.migen artiqpkgs.microscope artiqpkgs.misoc artiqpkgs.jesd204b artiqpkgs.artiq
|
||||||
]);
|
]);
|
||||||
fetchcargo = import (artiq-fast + "/fetchcargo.nix") {
|
fetchcargo = import (artiq-fast + "/fetchcargo.nix") {
|
||||||
inherit (pkgs) stdenv cacert git;
|
inherit (pkgs) stdenv cacert git;
|
||||||
|
@ -21,6 +21,7 @@ let
|
|||||||
"pygit2"
|
"pygit2"
|
||||||
"python-levenshtein"
|
"python-levenshtein"
|
||||||
"sipyco"
|
"sipyco"
|
||||||
|
"jsonschema"
|
||||||
];
|
];
|
||||||
extraYaml =
|
extraYaml =
|
||||||
''
|
''
|
||||||
|
@ -11,7 +11,7 @@ python3Packages.buildPythonPackage rec {
|
|||||||
propagatedBuildInputs = [ binutils-or1k llvm-or1k llvmlite-artiq ]
|
propagatedBuildInputs = [ binutils-or1k llvm-or1k llvmlite-artiq ]
|
||||||
++ (lib.lists.optionals (lib.strings.versionAtLeast version "6.0") [ binutils-arm ])
|
++ (lib.lists.optionals (lib.strings.versionAtLeast version "6.0") [ binutils-arm ])
|
||||||
++ (with pythonDeps; [ sipyco pyqtgraph-qt5 pythonparser ])
|
++ (with pythonDeps; [ sipyco pyqtgraph-qt5 pythonparser ])
|
||||||
++ (with python3Packages; [ pygit2 numpy dateutil scipy prettytable pyserial python-Levenshtein h5py pyqt5 ])
|
++ (with python3Packages; [ pygit2 numpy dateutil jsonschema scipy prettytable pyserial python-Levenshtein h5py pyqt5 ])
|
||||||
++ [(if (lib.strings.versionAtLeast version "6.0") then pythonDeps.qasync else python3Packages.quamash)];
|
++ [(if (lib.strings.versionAtLeast version "6.0") then pythonDeps.qasync else python3Packages.quamash)];
|
||||||
|
|
||||||
dontWrapQtApps = true;
|
dontWrapQtApps = true;
|
||||||
|
@ -8,7 +8,7 @@ in
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
vivado
|
vivado
|
||||||
pkgs.gnumake
|
pkgs.gnumake
|
||||||
(pkgs.python3.withPackages(ps: (with ps; [ jinja2 jsonschema numpy paramiko ]) ++ (with artiqpkgs; [ migen microscope misoc jesd204b migen-axi artiq ])))
|
(pkgs.python3.withPackages(ps: (with ps; [ jinja2 numpy paramiko ]) ++ (with artiqpkgs; [ migen microscope misoc jesd204b migen-axi artiq ])))
|
||||||
artiqpkgs.cargo
|
artiqpkgs.cargo
|
||||||
artiqpkgs.rustc
|
artiqpkgs.rustc
|
||||||
artiqpkgs.binutils-or1k
|
artiqpkgs.binutils-or1k
|
||||||
|
@ -78,10 +78,6 @@ let
|
|||||||
|
|
||||||
let
|
let
|
||||||
artiq-fast = import ${if a6p then "./board-generated" else "."}/fast { inherit pkgs; };
|
artiq-fast = import ${if a6p then "./board-generated" else "."}/fast { inherit pkgs; };
|
||||||
ddbDeps = [
|
|
||||||
artiq-fast.artiq
|
|
||||||
(pkgs.python3.withPackages (ps: [ ps.jsonschema ]))
|
|
||||||
];
|
|
||||||
|
|
||||||
kasliVariants = [${builtins.concatStringsSep " " (
|
kasliVariants = [${builtins.concatStringsSep " " (
|
||||||
builtins.map (variant: "\"${variant}\"") kasliVariants
|
builtins.map (variant: "\"${variant}\"") kasliVariants
|
||||||
@ -135,7 +131,7 @@ let
|
|||||||
) {
|
) {
|
||||||
"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 = ddbDeps;
|
buildInputs = artiq-fast.artiq;
|
||||||
phases = [ "buildPhase" ];
|
phases = [ "buildPhase" ];
|
||||||
buildPhase = "
|
buildPhase = "
|
||||||
mkdir \$out
|
mkdir \$out
|
||||||
@ -196,7 +192,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 = ddbDeps;
|
buildInputs = artiq-fast.artiq;
|
||||||
phases = [ "buildPhase" ];
|
phases = [ "buildPhase" ];
|
||||||
buildPhase = "
|
buildPhase = "
|
||||||
mkdir \$out
|
mkdir \$out
|
||||||
|
Loading…
Reference in New Issue
Block a user