fix nixpkgs-ugprade to use correct /bin/date
This commit is contained in:
committed by
Wolfgang Walther
parent
fc3a01fabe
commit
39959fa330
@@ -1,5 +1,6 @@
|
|||||||
{ buildToolbox
|
{ buildToolbox
|
||||||
, checkedShellScript
|
, checkedShellScript
|
||||||
|
, coreutils
|
||||||
, curl
|
, curl
|
||||||
, jq
|
, jq
|
||||||
, nix
|
, nix
|
||||||
@@ -33,7 +34,7 @@ let
|
|||||||
commitHash="$(${curl}/bin/curl "${refUrl}" -H "${githubV3Header}" | ${jq}/bin/jq -r .object.sha)"
|
commitHash="$(${curl}/bin/curl "${refUrl}" -H "${githubV3Header}" | ${jq}/bin/jq -r .object.sha)"
|
||||||
tarballUrl="${tarballUrlBase}$commitHash.tar.gz"
|
tarballUrl="${tarballUrlBase}$commitHash.tar.gz"
|
||||||
tarballHash="$(${nix}/bin/nix-prefetch-url --unpack "$tarballUrl")"
|
tarballHash="$(${nix}/bin/nix-prefetch-url --unpack "$tarballUrl")"
|
||||||
currentDate="$(date --iso)"
|
currentDate="$(${coreutils}/bin/date --iso)"
|
||||||
|
|
||||||
cat > nix/nixpkgs-version.nix << EOF
|
cat > nix/nixpkgs-version.nix << EOF
|
||||||
# Pinned version of Nixpkgs, generated with ${name}.
|
# Pinned version of Nixpkgs, generated with ${name}.
|
||||||
|
|||||||
Reference in New Issue
Block a user