mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
allow supplying custom version extra info in nix
This commit is contained in:
parent
e11e27bc0c
commit
114e7ba577
1 changed files with 5 additions and 7 deletions
|
|
@ -15,6 +15,9 @@
|
||||||
, all-features ? false
|
, all-features ? false
|
||||||
, features ? []
|
, features ? []
|
||||||
, profile ? "release"
|
, profile ? "release"
|
||||||
|
, version-extra ? inputs.self.shortRev
|
||||||
|
or inputs.self.dirtyShortRev
|
||||||
|
or null,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
@ -58,13 +61,8 @@ let
|
||||||
});
|
});
|
||||||
|
|
||||||
buildPackageEnv =
|
buildPackageEnv =
|
||||||
let
|
(lib.optionalAttrs (version-extra != null) {
|
||||||
GRAPEVINE_VERSION_EXTRA = inputs.self.shortRev
|
GRAPEVINE_VERSION_EXTRA = version-extra;
|
||||||
or inputs.self.dirtyShortRev
|
|
||||||
or null;
|
|
||||||
in
|
|
||||||
(lib.optionalAttrs (GRAPEVINE_VERSION_EXTRA != null) {
|
|
||||||
inherit GRAPEVINE_VERSION_EXTRA;
|
|
||||||
})
|
})
|
||||||
// buildDepsOnlyEnv;
|
// buildDepsOnlyEnv;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue