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,21 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "wipe";
version = "2.3.1";
src = fetchurl {
url = "mirror://sourceforge/wipe/${version}/${pname}-${version}.tar.bz2";
sha256 = "180snqvh6k6il6prb19fncflf2jcvkihlb4w84sbndcv1wvicfa6";
};
patches = [ ./fix-install.patch ];
meta = with lib; {
description = "Secure file wiping utility";
homepage = "http://wipe.sourceforge.net/";
license = licenses.gpl2;
platforms = platforms.all;
maintainers = [ maintainers.abbradar ];
};
}

View file

@ -0,0 +1,18 @@
diff -ru3 wipe-2.3.1/Makefile.in wipe-2.3.1-new/Makefile.in
--- wipe-2.3.1/Makefile.in 2009-11-02 00:11:30.000000000 +0300
+++ wipe-2.3.1-new/Makefile.in 2014-10-18 02:51:10.088966232 +0400
@@ -60,12 +60,12 @@
$(INSTALL_BIN) -d $(bindir)
$(INSTALL_BIN) -s $(BIN_OUT) $(bindir)
$(INSTALL) -d $(mandir)/man1
- $(INSTALL) -o root -m 0644 wipe.1 $(mandir)/man1/
+ $(INSTALL) -m 0644 wipe.1 $(mandir)/man1/
rm -rf $(datadir)/doc/wipe*
$(INSTALL) -d $(datadir)/doc/wipe
for file in $(DOCS); do \
- $(INSTALL) -o root -m 0644 $$file $(datadir)/doc/wipe/; \
+ $(INSTALL) -m 0644 $$file $(datadir)/doc/wipe/; \
done
install_home: $(BIN_OUT)