add metadata to ARTIQ conda package

This commit is contained in:
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;
src = import ./pkgs/artiq-src.nix { fetchgit = pkgs.fetchgit; };
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; } {
name = "conda-artiq";

View File

@ -1,5 +1,5 @@
{ pkgs }:
{ name, version, src, dependencies ? []}:
{ name, version, src, dependencies ? [], extraYaml ? ""}:
pkgs.runCommand "conda-fake-source-${name}" { }
''
mkdir -p $out/fake-conda;
@ -35,6 +35,8 @@ pkgs.runCommand "conda-fake-source-${name}" { }
requirements:
run:
${pkgs.lib.concatStringsSep "\n" (map (s: " - ${s}") dependencies)}
${extraYaml}
EOF
cat << EOF > $out/fake-conda/build.sh