make-tarball.nix: Derive version from lastModified instead of revCount
GitHub flakes don't provide revCount.
This commit is contained in:
parent
0f913dee48
commit
5548397488
|
@ -17,7 +17,10 @@ releaseTools.sourceTarball {
|
||||||
|
|
||||||
inherit officialRelease;
|
inherit officialRelease;
|
||||||
version = pkgs.lib.fileContents ../../.version;
|
version = pkgs.lib.fileContents ../../.version;
|
||||||
versionSuffix = "pre${toString nixpkgs.revCount}.${nixpkgs.shortRev}";
|
versionSuffix = "pre${
|
||||||
|
if nixpkgs ? lastModified
|
||||||
|
then builtins.substring 0 8 nixpkgs.lastModified
|
||||||
|
else toString nixpkgs.revCount}.${nixpkgs.shortRev}";
|
||||||
|
|
||||||
buildInputs = [ nix.out jq lib-tests ];
|
buildInputs = [ nix.out jq lib-tests ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue