depot/third_party/nixpkgs/pkgs/development/libraries/elementary-cmake-modules/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

29 lines
775 B
Nix

{ stdenv, lib, fetchFromGitHub, cmake, pkg-config }:
stdenv.mkDerivation {
pname = "elementary-cmake-modules";
version = "0.1.0";
src = fetchFromGitHub {
owner = "elementary";
repo = "cmake-modules";
rev = "319ec5336e9f05f3f22b886cc2053ef3d4b6599e";
sha256 = "191hhvdxyqvh9axzndaqld7vrmv7xkn0czks908zhb2zpjhv9rby";
};
prePatch = ''
substituteInPlace CMakeLists.txt \
--replace ' ''${CMAKE_ROOT}/Modules' " $out/lib/cmake"
'';
propagatedBuildInputs = [ cmake pkg-config ];
setupHook = ./setup-hook.sh;
meta = with lib; {
platforms = platforms.linux ++ platforms.darwin;
homepage = "https://github.com/elementary/cmake-modules";
license = licenses.gpl3Plus;
maintainers = [ maintainers.samdroid-apps ];
};
}