From 06a25ce4ab255e7c9183f082d913bba9d077f72e Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 12 Feb 2022 17:46:34 +0800 Subject: [PATCH] set versions in ARTIQ conda package --- flake.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/flake.nix b/flake.nix index 4db25a3..91bba88 100644 --- a/flake.nix +++ b/flake.nix @@ -80,6 +80,7 @@ cat << EOF > conda/${constituent.name}/build.sh #!/bin/bash set -e + ${constituent.preSetup or ""} python setup.py install \ --prefix=\$PREFIX \ --single-version-externally-managed \ @@ -117,6 +118,11 @@ name = "artiq"; version = artiq.packages.x86_64-linux.artiq.version; src = artiq.packages.x86_64-linux.artiq.src; + preSetup = + '' + export VERSIONEER_OVERRIDE=${artiq.packages.x86_64-linux.artiq.version} + export VERSIONEER_REV=${artiq.sourceInfo.rev} + ''; dependencies = [ "pythonparser" "scipy"