mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
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;
|
||||
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 ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user