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