mirror of
https://github.com/hyprwm/hyprutils.git
synced 2025-12-24 10:10:03 +01:00
nix: make mold optional
This commit is contained in:
parent
e631ea36dd
commit
b364dcb739
1 changed files with 4 additions and 1 deletions
|
|
@ -8,13 +8,16 @@
|
||||||
version ? "git",
|
version ? "git",
|
||||||
doCheck ? false,
|
doCheck ? false,
|
||||||
debug ? false,
|
debug ? false,
|
||||||
|
# whether to use the mold linker
|
||||||
|
# disable this for older machines without SSE4_2 and AVX2 support
|
||||||
|
withMold ? true,
|
||||||
}: let
|
}: let
|
||||||
inherit (builtins) foldl';
|
inherit (builtins) foldl';
|
||||||
inherit (lib.lists) flatten;
|
inherit (lib.lists) flatten;
|
||||||
inherit (lib.strings) optionalString;
|
inherit (lib.strings) optionalString;
|
||||||
|
|
||||||
adapters = flatten [
|
adapters = flatten [
|
||||||
stdenvAdapters.useMoldLinker
|
(lib.optional withMold stdenvAdapters.useMoldLinker)
|
||||||
(lib.optional debug stdenvAdapters.keepDebugInfo)
|
(lib.optional debug stdenvAdapters.keepDebugInfo)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue