add metadata to ARTIQ conda package
This commit is contained in:
parent
648a1d7f41
commit
0565ff9819
|
@ -7,6 +7,13 @@ let
|
||||||
inherit version;
|
inherit version;
|
||||||
src = import ./pkgs/artiq-src.nix { fetchgit = pkgs.fetchgit; };
|
src = import ./pkgs/artiq-src.nix { fetchgit = pkgs.fetchgit; };
|
||||||
dependencies = import ./conda-artiq-deps.nix;
|
dependencies = import ./conda-artiq-deps.nix;
|
||||||
|
extraYaml =
|
||||||
|
''
|
||||||
|
about:
|
||||||
|
home: https://m-labs.hk/artiq
|
||||||
|
license: LGPL
|
||||||
|
summary: 'A leading-edge control system for quantum information experiments'
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
conda-artiq = import ./conda-build.nix { inherit pkgs; } {
|
conda-artiq = import ./conda-build.nix { inherit pkgs; } {
|
||||||
name = "conda-artiq";
|
name = "conda-artiq";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ pkgs }:
|
{ pkgs }:
|
||||||
{ name, version, src, dependencies ? []}:
|
{ name, version, src, dependencies ? [], extraYaml ? ""}:
|
||||||
pkgs.runCommand "conda-fake-source-${name}" { }
|
pkgs.runCommand "conda-fake-source-${name}" { }
|
||||||
''
|
''
|
||||||
mkdir -p $out/fake-conda;
|
mkdir -p $out/fake-conda;
|
||||||
|
@ -35,6 +35,8 @@ pkgs.runCommand "conda-fake-source-${name}" { }
|
||||||
requirements:
|
requirements:
|
||||||
run:
|
run:
|
||||||
${pkgs.lib.concatStringsSep "\n" (map (s: " - ${s}") dependencies)}
|
${pkgs.lib.concatStringsSep "\n" (map (s: " - ${s}") dependencies)}
|
||||||
|
|
||||||
|
${extraYaml}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat << EOF > $out/fake-conda/build.sh
|
cat << EOF > $out/fake-conda/build.sh
|
||||||
|
|
Loading…
Reference in New Issue