mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
18 lines
343 B
Nix
18 lines
343 B
Nix
{ stdenv, lib, debug ? false }:
|
|
|
|
args:
|
|
|
|
stdenv.mkDerivation (args // {
|
|
|
|
outputs = args.outputs or [ "out" "dev" ];
|
|
|
|
propagatedUserEnvPkgs =
|
|
builtins.map lib.getBin (args.propagatedBuildInputs or []);
|
|
|
|
cmakeFlags =
|
|
(args.cmakeFlags or [])
|
|
++ [ "-DBUILD_TESTING=OFF" ]
|
|
++ lib.optional debug "-DCMAKE_BUILD_TYPE=Debug";
|
|
|
|
})
|