https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
21 lines
431 B
Nix
21 lines
431 B
Nix
{ mkDerivation, lib, cmake, pkg-config }:
|
|
|
|
mkDerivation {
|
|
pname = "extra-cmake-modules";
|
|
|
|
patches = [
|
|
./nix-lib-path.patch
|
|
];
|
|
|
|
outputs = [ "out" ]; # this package has no runtime components
|
|
|
|
propagatedBuildInputs = [ cmake pkg-config ];
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
meta = with lib; {
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
homepage = "http://www.kde.org";
|
|
license = licenses.bsd2;
|
|
};
|
|
}
|