feat(nix): support debug override for setting asan opt

This commit is contained in:
Rexiel Scarlet 2025-12-13 11:39:37 +04:00
parent 1d79b10437
commit 20a0905ba7
No known key found for this signature in database
GPG key ID: E22FC5FD4007C746

View file

@ -19,6 +19,7 @@
wlroots_0_19, wlroots_0_19,
libGL, libGL,
enableXWayland ? true, enableXWayland ? true,
debug ? false,
}: }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "mango"; pname = "mango";
@ -31,6 +32,7 @@ stdenv.mkDerivation {
mesonFlags = [ mesonFlags = [
(lib.mesonEnable "xwayland" enableXWayland) (lib.mesonEnable "xwayland" enableXWayland)
(lib.mesonBool "asan" debug)
]; ];
nativeBuildInputs = [ nativeBuildInputs = [