artiq: avoid conda breakage with - in version number

This commit is contained in:
Sebastien Bourdeauducq 2019-05-06 23:14:33 +08:00
parent 6114dbb738
commit 66456afae9
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ let
COMMITCOUNT=`${git}/bin/git rev-list --count HEAD` COMMITCOUNT=`${git}/bin/git rev-list --count HEAD`
''; '';
installPhase = '' installPhase = ''
echo -n 5.$COMMITCOUNT.`cut -c1-8 <<< $REV`-beta > $out echo -n 5.$COMMITCOUNT.`cut -c1-8 <<< $REV`.beta > $out
''; '';
}; };
in in

View File

@ -21,7 +21,7 @@ let
sha256 = "$HASH"; sha256 = "$HASH";
} }
EOF EOF
echo "{ stdenv, git, fetchgit }: \"5.$COMMITCOUNT.`cut -c1-8 <<< $REV`-beta\"" > $out/pkgs/artiq-version.nix echo "{ stdenv, git, fetchgit }: \"5.$COMMITCOUNT.`cut -c1-8 <<< $REV`.beta\"" > $out/pkgs/artiq-version.nix
echo "{ stdenv, git, fetchgit }: \"$TIMESTAMP\"" > $out/pkgs/artiq-timestamp.nix echo "{ stdenv, git, fetchgit }: \"$TIMESTAMP\"" > $out/pkgs/artiq-timestamp.nix
''; '';
generateTestOkHash = pkgs.runCommand "generate-test-ok-hash" { buildInputs = [ pkgs.nix ]; } generateTestOkHash = pkgs.runCommand "generate-test-ok-hash" { buildInputs = [ pkgs.nix ]; }