2021-01-19 06:50:56 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config }:
|
2018-02-22 05:52:00 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "elementary-cmake-modules";
|
2018-07-18 21:26:13 +01:00
|
|
|
version = "0.1.0";
|
2018-02-22 05:52:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = "cmake-modules";
|
|
|
|
rev = "319ec5336e9f05f3f22b886cc2053ef3d4b6599e";
|
|
|
|
sha256 = "191hhvdxyqvh9axzndaqld7vrmv7xkn0czks908zhb2zpjhv9rby";
|
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace CMakeLists.txt \
|
|
|
|
--replace ' ''${CMAKE_ROOT}/Modules' " $out/lib/cmake"
|
|
|
|
'';
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
propagatedBuildInputs = [ cmake pkg-config ];
|
2018-02-22 05:52:00 +00:00
|
|
|
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/elementary/cmake-modules";
|
2018-02-22 05:52:00 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.samdroid-apps ];
|
|
|
|
};
|
|
|
|
}
|