mirror of
https://github.com/hyprwm/aquamarine.git
synced 2025-12-20 07:00:18 +01:00
nix: make mold optional
This commit is contained in:
parent
50637ed23e
commit
adb34ed5e3
1 changed files with 5 additions and 2 deletions
|
|
@ -22,12 +22,15 @@
|
||||||
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;
|
||||||
|
|
||||||
adapters = flatten [
|
adapters = flatten [
|
||||||
stdenvAdapters.useMoldLinker
|
(lib.optional withMold stdenvAdapters.useMoldLinker)
|
||||||
(lib.optional debug stdenvAdapters.keepDebugInfo)
|
(lib.optional debug stdenvAdapters.keepDebugInfo)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -52,7 +55,7 @@ in
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
hwdata
|
hwdata
|
||||||
hyprutils
|
(hyprutils.override {inherit withMold;})
|
||||||
libdisplay-info
|
libdisplay-info
|
||||||
libdrm
|
libdrm
|
||||||
libffi
|
libffi
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue