elementary-cmake-modules: init at 319ec5336...
This commit is contained in:
parent
810318a622
commit
de650d4766
|
@ -0,0 +1,28 @@
|
|||
{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "elementary-cmake-modules";
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
_elementaryCMakeEnvHook() {
|
||||
cmakeFlagsArray+=(-DCMAKE_MODULE_PATH=@out@/lib/cmake)
|
||||
}
|
||||
addEnvHooks "$targetOffset" _elementaryCMakeEnvHook
|
|
@ -9117,6 +9117,7 @@ with pkgs;
|
|||
gnome-sharp = callPackage ../development/libraries/gnome-sharp {};
|
||||
|
||||
granite = callPackage ../development/libraries/granite { };
|
||||
elementary-cmake-modules = callPackage ../development/libraries/elementary-cmake-modules { };
|
||||
|
||||
gtk2 = callPackage ../development/libraries/gtk+/2.x.nix {
|
||||
cupsSupport = config.gtk2.cups or stdenv.isLinux;
|
||||
|
|
Loading…
Reference in a new issue