1 { pname, chip, version, sha256, extraPatches ? [] }:
18 binname = "${chip} Bank Editor";
19 mainProgram = "${lib.strings.toLower chip}_bank_editor";
22 inherit pname version;
24 src = fetchFromGitHub {
32 dos2unix CMakeLists.txt
35 patches = extraPatches;
51 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
52 mkdir $out/{bin,Applications}
53 mv "${binname}.app" $out/Applications/
55 install_name_tool -change {,${qwt6_1}/lib/}libqwt.6.dylib "$out/Applications/${binname}.app/Contents/MacOS/${binname}"
57 ln -s "$out/Applications/${binname}.app/Contents/MacOS/${binname}" $out/bin/${mainProgram}
62 description = "Small cross-platform editor of the ${chip} FM banks of different formats";
63 homepage = src.meta.homepage;
64 license = licenses.gpl3Plus;
65 platforms = platforms.all;
66 maintainers = with maintainers; [ OPNA2608 ];