Fix GitHub test

This commit is contained in:
Eelco Dolstra 2020-01-22 00:25:17 +01:00
parent b33b94748c
commit ad6e55d777

View File

@ -27,7 +27,7 @@ let
text = ''
{
"flakes": {
"nixpkgs": {
"flake:nixpkgs": {
"uri": "github:NixOS/nixpkgs"
}
},
@ -45,7 +45,7 @@ let
cp -prd ${nixpkgs} $dir
# Set the correct timestamp in the tarball.
find $dir -print0 | xargs -0 touch -t ${builtins.substring 0 12 nixpkgs.lastModified}.${builtins.substring 12 2 nixpkgs.lastModified} --
tar cfz $out/tarball/${nixpkgs.rev} $dir
tar cfz $out/tarball/${nixpkgs.rev} $dir --hard-dereference
mkdir -p $out/commits
echo '{"sha": "${nixpkgs.rev}"}' > $out/commits/master