Set the versionSuffix to include the Git shortrev
This commit is contained in:
parent
67444f5e54
commit
fb95455c02
|
@ -1,5 +1,5 @@
|
||||||
{ nixpkgs ? <nixpkgs>, nixos ? <nixos>
|
{ nixpkgs ? <nixpkgs>, nixos ? <nixos>
|
||||||
, nix ? { outPath = ./.; rev = 1234; }
|
, nix ? { outPath = ./.; revCount = 1234; shortRev = "abcdef"; }
|
||||||
, officialRelease ? false
|
, officialRelease ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@ let
|
||||||
releaseTools.sourceTarball {
|
releaseTools.sourceTarball {
|
||||||
name = "nix-tarball";
|
name = "nix-tarball";
|
||||||
version = builtins.readFile ./version;
|
version = builtins.readFile ./version;
|
||||||
|
versionSuffix = if officialRelease then "" else "pre${toString nix.revCount}_${nix.shortRev}";
|
||||||
src = nix;
|
src = nix;
|
||||||
inherit officialRelease;
|
inherit officialRelease;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue