From 0565ff98193920b450e09c91132c51f2a7e720e7 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 9 Nov 2019 18:58:21 +0800 Subject: [PATCH] add metadata to ARTIQ conda package --- artiq-fast/conda-artiq.nix | 7 +++++++ artiq-fast/conda-fake-source.nix | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/artiq-fast/conda-artiq.nix b/artiq-fast/conda-artiq.nix index 696aa06..50021c2 100644 --- a/artiq-fast/conda-artiq.nix +++ b/artiq-fast/conda-artiq.nix @@ -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"; diff --git a/artiq-fast/conda-fake-source.nix b/artiq-fast/conda-fake-source.nix index 7250698..0f09760 100644 --- a/artiq-fast/conda-fake-source.nix +++ b/artiq-fast/conda-fake-source.nix @@ -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