make-tarball.nix: support an absent revcount

When run out of a tarball, it is possible for revCount to be missing.

authored by Graham Christensen and committed by GitHub e1de9a31 4295779f

+1 -1
+1 -1
pkgs/top-level/make-tarball.nix
··· 19 19 versionSuffix = "pre${ 20 20 if nixpkgs ? lastModified 21 21 then builtins.substring 0 8 (nixpkgs.lastModifiedDate or nixpkgs.lastModified) 22 - else toString nixpkgs.revCount}.${nixpkgs.shortRev or "dirty"}"; 22 + else toString (nixpkgs.revCount or 0)}.${nixpkgs.shortRev or "dirty"}"; 23 23 24 24 buildInputs = with pkgs; [ nix.out jq lib-tests brotli ]; 25 25