diff --git a/pkgs/top-level/make-tarball.nix b/pkgs/top-level/make-tarball.nix index 61ed61192d5c..0d9a89d0e3fa 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 ];