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
45
pkgs/development/libraries/docopt_cpp/default.nix
Normal file
45
pkgs/development/libraries/docopt_cpp/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, python3 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.6.3";
|
||||
pname = "docopt.cpp";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "docopt";
|
||||
repo = "docopt.cpp";
|
||||
rev = "v${version}";
|
||||
sha256 = "0cz3vv7g5snfbsqcf3q8bmd6kv5qp84gj3avwkn4vl00krw13bl7";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "python3-for-tests";
|
||||
url = "https://github.com/docopt/docopt.cpp/commit/b3d909dc952ab102a4ad5a1541a41736f35b92ba.patch";
|
||||
hash = "sha256-JJR09pbn3QhYaZAIAjs+pe28+g1VfgHUKspWorHzr8o=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake python3 ];
|
||||
|
||||
cmakeFlags = ["-DWITH_TESTS=ON"];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
doCheck = true;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace docopt.pc.in \
|
||||
--replace "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@" \
|
||||
"@CMAKE_INSTALL_LIBDIR@"
|
||||
'';
|
||||
|
||||
checkPhase = "LD_LIBRARY_PATH=$(pwd) python ./run_tests";
|
||||
|
||||
meta = with lib; {
|
||||
description = "C++11 port of docopt";
|
||||
homepage = "https://github.com/docopt/docopt.cpp";
|
||||
license = with licenses; [ mit boost ];
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ knedlsepp ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue