1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 12:59:25 +00:00
nixpkgs/pkgs/development/libraries/elementary-cmake-modules/default.nix
2019-08-28 11:07:32 +00:00

30 lines
771 B
Nix

{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig }:
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 pkgconfig ];
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 ];
};
}