mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-16 15:21:24 +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
|
||||
, features ? []
|
||||
, profile ? "release"
|
||||
, version-extra ? inputs.self.shortRev
|
||||
or inputs.self.dirtyShortRev
|
||||
or null,
|
||||
}:
|
||||
|
||||
let
|
||||
|
|
@ -58,13 +61,8 @@ let
|
|||
});
|
||||
|
||||
buildPackageEnv =
|
||||
let
|
||||
GRAPEVINE_VERSION_EXTRA = inputs.self.shortRev
|
||||
or inputs.self.dirtyShortRev
|
||||
or null;
|
||||
in
|
||||
(lib.optionalAttrs (GRAPEVINE_VERSION_EXTRA != null) {
|
||||
inherit GRAPEVINE_VERSION_EXTRA;
|
||||
(lib.optionalAttrs (version-extra != null) {
|
||||
GRAPEVINE_VERSION_EXTRA = version-extra;
|
||||
})
|
||||
// buildDepsOnlyEnv;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue