mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-25 21:29:48 +01:00
Nix: fix TAG substitution
This commit is contained in:
parent
5f7ad767db
commit
68a5842f06
1 changed files with 3 additions and 3 deletions
|
@ -50,12 +50,12 @@
|
||||||
nvidiaPatches ? false,
|
nvidiaPatches ? false,
|
||||||
hidpiXWayland ? false,
|
hidpiXWayland ? false,
|
||||||
}: let
|
}: let
|
||||||
inherit (builtins) baseNameOf foldl';
|
inherit (builtins) baseNameOf foldl' readFile;
|
||||||
inherit (lib.asserts) assertMsg;
|
inherit (lib.asserts) assertMsg;
|
||||||
inherit (lib.attrsets) mapAttrsToList;
|
inherit (lib.attrsets) mapAttrsToList;
|
||||||
inherit (lib.lists) flatten concatLists optional optionals;
|
inherit (lib.lists) flatten concatLists optional optionals;
|
||||||
inherit (lib.sources) cleanSourceWith cleanSource;
|
inherit (lib.sources) cleanSourceWith cleanSource;
|
||||||
inherit (lib.strings) hasSuffix makeBinPath optionalString mesonBool mesonEnable;
|
inherit (lib.strings) hasSuffix makeBinPath optionalString mesonBool mesonEnable trim;
|
||||||
|
|
||||||
adapters = flatten [
|
adapters = flatten [
|
||||||
stdenvAdapters.useMoldLinker
|
stdenvAdapters.useMoldLinker
|
||||||
|
@ -91,7 +91,7 @@ in
|
||||||
DATE = date;
|
DATE = date;
|
||||||
DIRTY = optionalString (commit == "") "dirty";
|
DIRTY = optionalString (commit == "") "dirty";
|
||||||
HASH = commit;
|
HASH = commit;
|
||||||
TAG = "v${builtins.readFile "${finalAttrs.src}/VERSION"}";
|
TAG = "v${trim (readFile "${finalAttrs.src}/VERSION")}";
|
||||||
|
|
||||||
depsBuildBuild = [
|
depsBuildBuild = [
|
||||||
pkg-config
|
pkg-config
|
||||||
|
|
Loading…
Reference in a new issue