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,28 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, zlib, pciutils }:
stdenv.mkDerivation rec {
pname = "biosdevname";
version = "0.7.3";
src = fetchFromGitHub {
owner = "dell";
repo = "biosdevname";
rev = "v${version}";
sha256 = "19wbb79x9h79k55sgd4dylvdbhhrvfaiaknbw9s1wvfmirkxa1dz";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ zlib pciutils ];
# Don't install /lib/udev/rules.d/*-biosdevname.rules
patches = [ ./makefile.patch ];
configureFlags = [ "--sbindir=\${out}/bin" ];
meta = with lib; {
description = "Udev helper for naming devices per BIOS names";
license = licenses.gpl2;
platforms = ["x86_64-linux" "i686-linux"];
maintainers = with maintainers; [ cstrahan ];
};
}

View file

@ -0,0 +1,13 @@
diff --git a/Makefile.am b/Makefile.am
index 14d9a92..9e324d2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,8 +8,6 @@ dist_noinst_DATA = biosdevname.rules.in biosdevname.spec.fedora biosdevname.spec
CLEANFILES = version src/bios_dev_name.h
install-data-local:
- mkdir -p $(DESTDIR)@RULEDIR@
- $(INSTALL_DATA) $(top_srcdir)/biosdevname.rules.in $(DESTDIR)@RULEDEST@
uninstall-local:
rm -f $(DESTDIR)@RULEDEST@