2023-02-09 11:40:11 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, zlib, ncurses, fuse }:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "wiimms-iso-tools";
|
2023-02-09 11:40:11 +00:00
|
|
|
version = "3.05a";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-02-09 11:40:11 +00:00
|
|
|
url = "https://download.wiimm.de/source/wiimms-iso-tools/wiimms-iso-tools.source-${version}.txz";
|
|
|
|
hash = "sha256-5aikiPJkZf9OwD8QmQ7ijhBOtFQpkIErvb6gOvEu2L0=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zlib ncurses fuse ];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
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;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
postPatch = ''
|
2023-02-09 11:40:11 +00:00
|
|
|
patchShebangs setup.sh gen-template.sh gen-text-file.sh
|
|
|
|
substituteInPlace setup.sh --replace gcc "$CC"
|
|
|
|
substituteInPlace Makefile --replace gcc "$CC"
|
2020-09-25 04:45:31 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
INSTALL_PATH = "$out";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir "$out"
|
|
|
|
patchShebangs install.sh
|
|
|
|
./install.sh --no-sudo
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://wit.wiimm.de";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Set of command line tools to manipulate Wii and GameCube ISO images and WBFS containers";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2023-02-09 11:40:11 +00:00
|
|
|
platforms = platforms.unix;
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = with maintainers; [ nilp0inter ];
|
|
|
|
};
|
|
|
|
}
|