about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2023-06-02 09:52:46 -0400
committerGitHub <noreply@github.com>2023-06-02 09:52:46 -0400
commit2c7b43f679be2576ee851588d631ba0f99d4cbe9 (patch)
tree44587a4075efab9ee780e99b9835ca4b9cee847e /pkgs
parent7409e8f091ad7e88a6a44a563256e4815634deae (diff)
parente1de9a317d5e3ac1a501e25be58e0f617de4d085 (diff)
Merge pull request #234721 from NixOS/grahamc/absent-revcount
make-tarball.nix: support an absent revcount
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/top-level/make-tarball.nix2
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 ];