nixpkgs-suyu/pkgs/build-support/kde/derivation.nix
2017-02-27 11:49:16 -06:00

17 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";
})