forked from M-Labs/nix-scripts
artiq-fast: do update nixpkgs.nix
This commit is contained in:
parent
bc501c96ab
commit
f7dd925234
@ -30,6 +30,22 @@ let
|
||||
EOF
|
||||
echo "{ stdenv, git, fetchgit }: \"$MAJOR_VERSION.$COMMIT_COUNT.`cut -c1-8 <<< $REV`$SUFFIX\"" > $out/pkgs/artiq-version.nix
|
||||
echo "{ stdenv, git, fetchgit }: \"$TIMESTAMP\"" > $out/pkgs/artiq-timestamp.nix
|
||||
|
||||
REV=`git --git-dir ${<nixpkgs>}/.git rev-parse HEAD`
|
||||
NIXPKGS_CLEAN=`mktemp -d`
|
||||
cp -a ${<nixpkgs>}/. $NIXPKGS_CLEAN
|
||||
chmod -R 755 $NIXPKGS_CLEAN/.git
|
||||
chmod 755 $NIXPKGS_CLEAN
|
||||
rm -rf $NIXPKGS_CLEAN/.git
|
||||
HASH=`nix-hash --type sha256 --base32 $NIXPKGS_CLEAN`
|
||||
cat > $out/pkgs/nixpkgs.nix << EOF
|
||||
{ fetchgit }:
|
||||
import (fetchgit {
|
||||
url = "https://github.com/nixos/nixpkgs.git";
|
||||
rev = "$REV";
|
||||
sha256 = "$HASH";
|
||||
})
|
||||
EOF
|
||||
'';
|
||||
artiqpkgs = import "${generatedNix}/default.nix" { inherit pkgs; };
|
||||
artiqVersion = import "${generatedNix}/pkgs/artiq-version.nix" (with pkgs; { inherit stdenv fetchgit git; });
|
||||
|
Loading…
Reference in New Issue
Block a user