Merge pull request #234721 from NixOS/grahamc/absent-revcount
make-tarball.nix: support an absent revcount
This commit is contained in:
commit
2c7b43f679
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ pkgs.releaseTools.sourceTarball {
|
|||
versionSuffix = "pre${
|
||||
if nixpkgs ? lastModified
|
||||
then builtins.substring 0 8 (nixpkgs.lastModifiedDate or nixpkgs.lastModified)
|
||||
else toString nixpkgs.revCount}.${nixpkgs.shortRev or "dirty"}";
|
||||
else toString (nixpkgs.revCount or 0)}.${nixpkgs.shortRev or "dirty"}";
|
||||
|
||||
buildInputs = with pkgs; [ nix.out jq lib-tests brotli ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue