diff options
author | Graham Christensen <graham@grahamc.com> | 2023-05-28 22:30:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-28 22:30:53 -0400 |
commit | e1de9a317d5e3ac1a501e25be58e0f617de4d085 (patch) | |
tree | 03dcfd21b8de456a4ccdd858fac6e1a7608dee6e /pkgs/top-level/make-tarball.nix | |
parent | 4295779fbaacb7158d5f32c4aa2740ef7b56d91b (diff) |
make-tarball.nix: support an absent revcount
When run out of a tarball, it is possible for revCount to be missing.
Diffstat (limited to 'pkgs/top-level/make-tarball.nix')
-rw-r--r-- | pkgs/top-level/make-tarball.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/top-level/make-tarball.nix b/pkgs/top-level/make-tarball.nix index abc121e29dc75..0f1c92be89bc3 100644 --- a/pkgs/top-level/make-tarball.nix +++ b/pkgs/top-level/make-tarball.nix @@ -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 ]; |