nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 37 lines 890 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "cmake-modules-webos"; 10 version = "19"; 11 12 src = fetchFromGitHub { 13 owner = "openwebos"; 14 repo = "cmake-modules-webos"; 15 rev = "submissions/${version}"; 16 sha256 = "1l4hpcmgc98kp9g1642sy111ki5qyk3q7j10xzkgmnvz8lqffnxp"; 17 }; 18 19 nativeBuildInputs = [ cmake ]; 20 21 prePatch = '' 22 substituteInPlace CMakeLists.txt --replace "CMAKE_ROOT}/Modules" "CMAKE_INSTALL_PREFIX}/lib/cmake" 23 substituteInPlace webOS/webOS.cmake \ 24 --replace ' ''${CMAKE_ROOT}/Modules' " $out/lib/cmake" \ 25 --replace 'INSTALL_ROOT}/usr' 'INSTALL_ROOT}' 26 27 sed -i '/CMAKE_INSTALL_PREFIX/d' webOS/webOS.cmake 28 ''; 29 30 setupHook = ./cmake-setup-hook.sh; 31 32 meta = with lib; { 33 description = "CMake modules needed to build Open WebOS components"; 34 license = licenses.asl20; 35 maintainers = [ ]; 36 }; 37}