asan in flake

This commit is contained in:
2024-01-14 21:48:41 +01:00
parent 565aa4b7eb
commit 18ca88a0d4
2 changed files with 8 additions and 0 deletions

View File

@ -55,12 +55,19 @@
libsodium
] ++ self.packages.${system}.default.dlopenBuildInputs;
cmakeFlags = [
"TOMATO_ASAN=1"
"CMAKE_BUILD_TYPE=RelWithDebInfo"
];
# TODO: replace with install command
installPhase = ''
mkdir -p $out/bin
mv bin/tomato $out/bin
'';
dontStrip = true;
# copied from nixpkgs's SDL2 default.nix
# SDL is weird in that instead of just dynamically linking with
# libraries when you `--enable-*` (or when `configure` finds) them