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
51
pkgs/development/libraries/newt/default.nix
Normal file
51
pkgs/development/libraries/newt/default.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{ lib, fetchurl, stdenv, slang, popt, python }:
|
||||
|
||||
let
|
||||
pythonIncludePath = "${lib.getDev python}/include/python";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "newt";
|
||||
version = "0.52.21";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://releases.pagure.org/${pname}/${pname}-${version}.tar.gz";
|
||||
sha256 = "0cdvbancr7y4nrj8257y5n45hmhizr8isynagy4fpsnpammv8pi6";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e s,/usr/bin/install,install, -e s,-I/usr/include/slang,, Makefile.in po/Makefile
|
||||
|
||||
substituteInPlace configure \
|
||||
--replace "/usr/include/python" "${pythonIncludePath}"
|
||||
substituteInPlace configure.ac \
|
||||
--replace "/usr/include/python" "${pythonIncludePath}"
|
||||
|
||||
substituteInPlace Makefile.in \
|
||||
--replace "ar rv" "${stdenv.cc.targetPrefix}ar rv"
|
||||
'';
|
||||
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ python ];
|
||||
buildInputs = [ slang popt ];
|
||||
|
||||
NIX_LDFLAGS = "-lncurses";
|
||||
|
||||
preConfigure = ''
|
||||
# If CPP is set explicitly, configure and make will not agree about which
|
||||
# programs to use at different stages.
|
||||
unset CPP
|
||||
'';
|
||||
|
||||
makeFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
|
||||
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://pagure.io/newt";
|
||||
description = "Library for color text mode, widget based user interfaces";
|
||||
|
||||
license = licenses.lgpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.viric ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue