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,34 @@
{ lib, stdenv, fetchFromGitHub, perl, AppKit, Cocoa, ScriptingBridge }:
stdenv.mkDerivation rec {
version = "0.9.2";
pname = "trash";
src = fetchFromGitHub {
owner = "ali-rantakari";
repo = "trash";
rev = "v${version}";
sha256 = "1d3rc03vgz32faj7qi18iiggxvxlqrj9lsk5jkpa9r1mcs5d89my";
};
buildInputs = [ perl Cocoa AppKit ScriptingBridge ];
patches = [ ./trash.diff ];
buildPhase = "make all docs";
installPhase = ''
mkdir -p $out/bin
mkdir -p $out/share/man/man1
install -m 0755 trash $out/bin
install -m 0444 trash.1 $out/share/man/man1
'';
meta = {
homepage = "https://github.com/ali-rantakari/trash";
description = "Small command-line program for OS X that moves files or
folders to the trash.";
platforms = lib.platforms.darwin;
license = lib.licenses.mit;
};
}

View file

@ -0,0 +1,13 @@
diff --git a/Makefile b/Makefile
index 5e4306f..9c975fc 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ trash: $(SOURCE_FILES)
@echo
@echo ---- Compiling:
@echo ======================================
- $(CC) -O2 -Wall -Wextra -Wpartial-availability -Wno-unguarded-availability -force_cpusubtype_ALL -mmacosx-version-min=10.7 -arch i386 -arch x86_64 -framework AppKit -framework ScriptingBridge -o $@ $(SOURCE_FILES)
+ $(CC) -O2 -Wall -Wextra -Wpartial-availability -Wno-unguarded-availability -framework AppKit -framework ScriptingBridge -o $@ $(SOURCE_FILES)
analyze:
@echo