mup: 6.8 -> 7.2 (#440884)

Changed files
+21 -18
pkgs
+17 -12
pkgs/applications/audio/mup/default.nix
···
libjpeg,
}:
-
stdenv.mkDerivation rec {
pname = "mup";
-
version = "6.8";
src = fetchurl {
-
url = "http://www.arkkra.com/ftp/pub/unix/mup${
-
builtins.replaceStrings [ "." ] [ "" ] version
-
}src.tar.gz";
-
sha256 = "06bv5nyl8rcibyb83zzrfdq6x6f93g3rgnv47i5gsjcaw5w6l31y";
};
nativeBuildInputs = [
···
postPatch = ''
for f in Makefile.am doc/Makefile.am doc/htmldocs/Makefile.am src/mupmate/Preferences.C; do
-
substituteInPlace $f --replace doc/packages doc
done
-
substituteInPlace src/mupprnt/mupprnt --replace 'mup ' $out/bin/mup' '
-
substituteInPlace src/mupdisp/genfile.c --replace '"mup"' '"'$out/bin/mup'"'
substituteInPlace src/mupmate/Preferences.C \
-
--replace '"mup"' '"'$out/bin/mup'"' \
-
--replace '"gv"' '"xdg-open"' \
-
--replace /usr/share/doc $out/share/doc
'';
enableParallelBuilding = false; # Undeclared dependencies + https://stackoverflow.com/a/19822767/1687334 for prolog.ps.
···
libjpeg,
}:
+
stdenv.mkDerivation {
pname = "mup";
+
version = "7.2";
src = fetchurl {
+
urls = [
+
# Since the original site is geo-blocked in the EU, we may revert to the archived version;
+
# please update both URLs during future updates!
+
"http://www.arkkra.com/ftp/pub/unix/mup72src.tar.gz"
+
"https://web.archive.org/web/20250907143445/http://www.arkkra.com/ftp/pub/unix/mup72src.tar.gz"
+
];
+
hash = "sha256-XbfIsSzE7cwdK0DlOyS8PEJbBGc7Doa1HGLsVfx2ZaY=";
};
nativeBuildInputs = [
···
postPatch = ''
for f in Makefile.am doc/Makefile.am doc/htmldocs/Makefile.am src/mupmate/Preferences.C; do
+
substituteInPlace $f --replace-fail doc/packages doc
done
+
substituteInPlace src/mupprnt/mupprnt \
+
--replace-fail 'mup ' $out/bin/mup' '
+
substituteInPlace src/mupdisp/genfile.c \
+
--replace-fail '"mup"' '"'$out/bin/mup'"'
substituteInPlace src/mupmate/Preferences.C \
+
--replace-fail '"mup"' '"'$out/bin/mup'"' \
+
--replace-fail '"gv"' '"xdg-open"' \
+
--replace-fail /usr/share/doc $out/share/doc
'';
enableParallelBuilding = false; # Undeclared dependencies + https://stackoverflow.com/a/19822767/1687334 for prolog.ps.
+3 -3
pkgs/applications/audio/mup/ghostscript-permit-file-write.patch
···
--- a/src/mup/Makefile.am
+++ b/src/mup/Makefile.am
-
@@ -39 +39 @@ fontdata.c: prolog.ps ../../tools/mup/getfontinfo.ps ../../LICENSE
-
- $(GS) -sDEVICE=nullpage -sOutputFile=/dev/null -dQUIET - < ../../tools/mup/getfontinfo.ps | $(SED) -e "/Warning:/d" >> fontdata.c
-
+ $(GS) -sDEVICE=nullpage -sOutputFile=/dev/null -dQUIET --permit-file-write=charnames:fontinit - < ../../tools/mup/getfontinfo.ps | $(SED) -e "/Warning:/d" >> fontdata.c
···
--- a/src/mup/Makefile.am
+++ b/src/mup/Makefile.am
+
@@ -37 +37 @@ fontdata.c: prolog.ps ../../tools/mup/getfontinfo.ps ../../LICENSE
+
- $(GS) -dNOSAFER -sDEVICE=nullpage -sOutputFile=/dev/null -dQUIET - < ../../tools/mup/getfontinfo.ps | $(SED) -e "/Warning:/d" >> fontdata.c
+
+ $(GS) -dNOSAFER -sDEVICE=nullpage -sOutputFile=/dev/null -dQUIET --permit-file-write=charnames:fontinit - < ../../tools/mup/getfontinfo.ps | $(SED) -e "/Warning:/d" >> fontdata.c
+1 -3
pkgs/top-level/all-packages.nix
···
mumble_overlay = (callPackages ../applications/networking/mumble { }).overlay;
-
mup = callPackage ../applications/audio/mup {
-
autoreconfHook = buildPackages.autoreconfHook269;
-
};
musescore = qt6.callPackage ../applications/audio/musescore { };
···
mumble_overlay = (callPackages ../applications/networking/mumble { }).overlay;
+
mup = callPackage ../applications/audio/mup { };
musescore = qt6.callPackage ../applications/audio/musescore { };