switch nix build to cmake
This commit is contained in:
10
default.nix
10
default.nix
@@ -1,7 +1,8 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
installShellFiles,
|
|
||||||
stdenv,
|
stdenv,
|
||||||
|
cmake,
|
||||||
|
installShellFiles,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
@@ -10,7 +11,12 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
src = lib.cleanSource ./.;
|
src = lib.cleanSource ./.;
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ cmake installShellFiles ];
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DENABLE_ASAN=on"
|
||||||
|
"-DCMAKE_BUILD_TYPE=Debug"
|
||||||
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|||||||
Reference in New Issue
Block a user