mup: init at 6.7

+48
+41
pkgs/applications/audio/mup/default.nix
··· 1 + { stdenv, fetchurl, autoreconfHook, bison, flex, ghostscript, groff, netpbm 2 + , fltk, libXinerama, libXpm, libjpeg 3 + }: 4 + 5 + stdenv.mkDerivation rec { 6 + pname = "mup"; 7 + version = "6.7"; 8 + 9 + src = fetchurl { 10 + url = "http://www.arkkra.com/ftp/pub/unix/mup${builtins.replaceStrings ["."] [""] version}src.tar.gz"; 11 + sha256 = "1y1qknhib1isdjsbv833w3nxzyfljkfgp1gmjwly60l55q60frpk"; 12 + }; 13 + 14 + nativeBuildInputs = [ autoreconfHook bison flex ghostscript groff netpbm ]; 15 + 16 + buildInputs = [ fltk libXinerama libXpm libjpeg ]; 17 + 18 + patches = [ ./ghostscript-permit-file-write.patch ]; 19 + 20 + postPatch = '' 21 + for f in Makefile.am doc/Makefile.am doc/htmldocs/Makefile.am src/mupmate/Preferences.C; do 22 + substituteInPlace $f --replace doc/packages doc 23 + done 24 + substituteInPlace src/mupprnt/mupprnt --replace 'mup ' $out/bin/mup' ' 25 + substituteInPlace src/mupdisp/genfile.c --replace '"mup"' '"'$out/bin/mup'"' 26 + substituteInPlace src/mupmate/Preferences.C \ 27 + --replace '"mup"' '"'$out/bin/mup'"' \ 28 + --replace '"gv"' '"xdg-open"' \ 29 + --replace /usr/share/doc $out/share/doc 30 + ''; 31 + 32 + enableParallelBuilding = false; # Undeclared dependencies + https://stackoverflow.com/a/19822767/1687334 for prolog.ps. 33 + 34 + meta = with stdenv.lib; { 35 + homepage = http://www.arkkra.com/; 36 + description = "Music typesetting program (ASCII to PostScript and MIDI)"; 37 + license = licenses.bsd3; 38 + maintainers = with maintainers; [ orivej ]; 39 + platforms = platforms.linux; 40 + }; 41 + }
+5
pkgs/applications/audio/mup/ghostscript-permit-file-write.patch
··· 1 + --- a/src/mup/Makefile.am 2 + +++ b/src/mup/Makefile.am 3 + @@ -39 +39 @@ fontdata.c: prolog.ps ../../tools/mup/getfontinfo.ps ../../LICENSE 4 + - $(GS) -sDEVICE=nullpage -sOutputFile=/dev/null -dQUIET - < ../../tools/mup/getfontinfo.ps | $(SED) -e "/Warning:/d" >> fontdata.c 5 + + $(GS) -sDEVICE=nullpage -sOutputFile=/dev/null -dQUIET --permit-file-write=charnames:fontinit - < ../../tools/mup/getfontinfo.ps | $(SED) -e "/Warning:/d" >> fontdata.c
+2
pkgs/top-level/all-packages.nix
··· 20655 20655 else null; 20656 20656 }; 20657 20657 20658 + mup = callPackage ../applications/audio/mup { }; 20659 + 20658 20660 # TODO: we should probably merge these 2 20659 20661 musescore = 20660 20662 if stdenv.isDarwin then