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:
Anton Arapov 2021-04-03 12:58:10 +02:00 committed by Alan Daniels
commit 56de2bcd43
30691 changed files with 3076956 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
version = "2.2.7b";
pname = "discount";
src = fetchFromGitHub {
owner = "Orc";
repo = pname;
rev = "v${version}";
sha256 = "sha256-S6OVKYulhvEPRqNXBsvZ7m2W4cbdnrpZKPAo3SfD+9s=";
};
patches = [ ./fix-configure-path.patch ];
configureScript = "./configure.sh";
configureFlags = [
"--shared"
"--debian-glitch" # use deterministic mangling
"--pkg-config"
"--h1-title"
];
enableParallelBuilding = true;
installTargets = [ "install.everything" ];
doCheck = true;
postFixup = lib.optionalString stdenv.isDarwin ''
install_name_tool -id $out/lib/libmarkdown.dylib $out/lib/libmarkdown.dylib
'';
meta = with lib; {
description = "Implementation of Markdown markup language in C";
homepage = "http://www.pell.portland.or.us/~orc/Code/discount/";
license = licenses.bsd3;
maintainers = with maintainers; [ shell ];
mainProgram = "markdown";
platforms = platforms.unix;
};
}

View file

@ -0,0 +1,12 @@
diff -rupN discount-2.1.6-original/configure.inc discount-2.1.6/configure.inc
--- discount-2.1.6-original/configure.inc 2014-10-10 15:34:24.158325345 +0100
+++ discount-2.1.6/configure.inc 2014-10-10 15:34:33.553325321 +0100
@@ -32,7 +32,7 @@
# this preamble code is executed when this file is sourced and it picks
# interesting things off the command line.
#
-ac_default_path="/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin"
+ac_default_path=$PATH
ac_standard="--src=DIR where the source lives (.)
--prefix=DIR where to install the final product (/usr/local)