uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
32
pkgs/development/mobile/webos/cmake-modules.nix
Normal file
32
pkgs/development/mobile/webos/cmake-modules.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cmake-modules-webos";
|
||||
version = "19";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openwebos";
|
||||
repo = "cmake-modules-webos";
|
||||
rev = "submissions/${version}";
|
||||
sha256 = "1l4hpcmgc98kp9g1642sy111ki5qyk3q7j10xzkgmnvz8lqffnxp";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace CMakeLists.txt --replace "CMAKE_ROOT}/Modules" "CMAKE_INSTALL_PREFIX}/lib/cmake"
|
||||
substituteInPlace webOS/webOS.cmake \
|
||||
--replace ' ''${CMAKE_ROOT}/Modules' " $out/lib/cmake" \
|
||||
--replace 'INSTALL_ROOT}/usr' 'INSTALL_ROOT}'
|
||||
|
||||
sed -i '/CMAKE_INSTALL_PREFIX/d' webOS/webOS.cmake
|
||||
'';
|
||||
|
||||
setupHook = ./cmake-setup-hook.sh;
|
||||
|
||||
meta = with lib; {
|
||||
description = "CMake modules needed to build Open WebOS components";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ dtzWill ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue