Set version properly
This commit is contained in:
parent
4fdec5f61d
commit
36c34c3b1f
1 changed files with 7 additions and 5 deletions
12
flake.nix
12
flake.nix
|
@ -9,11 +9,11 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
version =
|
version = builtins.readFile ./.version + versionSuffix;
|
||||||
builtins.readFile ./.version
|
versionSuffix =
|
||||||
+ (if officialRelease
|
if officialRelease
|
||||||
then ""
|
then ""
|
||||||
else "pre${builtins.substring 0 8 self.lastModified}_${self.shortRev or "dirty"}");
|
else "pre${builtins.substring 0 8 self.lastModified}_${self.shortRev or "dirty"}";
|
||||||
|
|
||||||
officialRelease = false;
|
officialRelease = false;
|
||||||
|
|
||||||
|
@ -116,6 +116,8 @@
|
||||||
|
|
||||||
src = self;
|
src = self;
|
||||||
|
|
||||||
|
VERSION_SUFFIX = versionSuffix;
|
||||||
|
|
||||||
outputs = [ "out" "dev" "doc" ];
|
outputs = [ "out" "dev" "doc" ];
|
||||||
|
|
||||||
buildInputs = buildDeps;
|
buildInputs = buildDeps;
|
||||||
|
|
Loading…
Reference in a new issue