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,50 @@
{lib, stdenv, fetchurl, fetchpatch, zlib, ncurses, fuse}:
stdenv.mkDerivation rec {
pname = "wiimms-iso-tools";
version = "3.02a";
src = fetchurl {
url = "https://download.wiimm.de/source/wiimms-iso-tools/wiimms-iso-tools.source-${version}.tar.bz2";
sha256 = "074cvcaqz23xyihslc6n64wwxwcnl6xp7l0750yb9pc0wrqxmj69";
};
buildInputs = [ zlib ncurses fuse ];
patches = [
./fix-paths.diff
# Pull pending upstream fix for ncurses-6.3:
# https://github.com/Wiimm/wiimms-iso-tools/pull/14
(fetchpatch {
name = "ncurses-6.3.patch";
url = "https://github.com/Wiimm/wiimms-iso-tools/commit/3f1e84ec6915cc4f658092d33411985bd3eaf4e6.patch";
sha256 = "18cfri4y1082phg6fzh402gk5ri24wr8ff4zl8v5rlgjndh610im";
stripLen = 1;
})
];
postPatch = ''
patchShebangs setup.sh
patchShebangs gen-template.sh
patchShebangs gen-text-file.sh
'';
# Workaround build failure on -fno-common toolchains like upstream gcc-10.
NIX_CFLAGS_COMPILE = "-Wno-error=format-security -fcommon";
INSTALL_PATH = "$out";
installPhase = ''
mkdir "$out"
patchShebangs install.sh
./install.sh --no-sudo
'';
meta = with lib; {
homepage = "https://wit.wiimm.de";
description = "A set of command line tools to manipulate Wii and GameCube ISO images and WBFS containers";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ nilp0inter ];
};
}

View file

@ -0,0 +1,12 @@
diff -r -u wiimms-iso-tools.source-3.02a.patched/setup.sh wiimms-iso-tools.source-3.02a/setup.sh
--- wiimms-iso-tools.source-3.02a.patched/setup.sh 2020-06-02 23:48:18.651495869 +0200
+++ wiimms-iso-tools.source-3.02a/setup.sh 2020-06-02 23:48:29.758162513 +0200
@@ -57,7 +57,7 @@
#--------------------------------------------------
-INSTALL_PATH=/usr/local
+ INSTALL_PATH="$out"
if [[ -d $INSTALL_PATH/bin ]]
then