Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchFromGitHub, cmake, pkg-config }: 2 3stdenv.mkDerivation { 4 pname = "elementary-cmake-modules"; 5 version = "0.1.0"; 6 7 src = fetchFromGitHub { 8 owner = "elementary"; 9 repo = "cmake-modules"; 10 rev = "319ec5336e9f05f3f22b886cc2053ef3d4b6599e"; 11 sha256 = "191hhvdxyqvh9axzndaqld7vrmv7xkn0czks908zhb2zpjhv9rby"; 12 }; 13 14 prePatch = '' 15 substituteInPlace CMakeLists.txt \ 16 --replace ' ''${CMAKE_ROOT}/Modules' " $out/lib/cmake" 17 ''; 18 19 propagatedBuildInputs = [ cmake pkg-config ]; 20 21 setupHook = ./setup-hook.sh; 22 23 meta = with lib; { 24 platforms = platforms.linux ++ platforms.darwin; 25 homepage = "https://github.com/elementary/cmake-modules"; 26 license = licenses.gpl3Plus; 27 maintainers = [ maintainers.samdroid-apps ]; 28 }; 29}