mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
make-tarball.nix: support an absent revcount
When run out of a tarball, it is possible for revCount to be missing.
This commit is contained in:
parent
4295779fba
commit
e1de9a317d
@ -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 New Issue
Block a user