add metadata to ARTIQ conda package

pull/30/head
Sebastien Bourdeauducq 2019-11-09 18:58:21 +08:00
parent 648a1d7f41
commit 0565ff9819
2 changed files with 10 additions and 1 deletions

View File

@ -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";

View File

@ -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