nixpkgs/pkgs/misc/solfege/default.nix
Orivej Desh 19f7f150a4 solfege: fix build with texinfo 6.7
makeinfo seems right to fail when input encoding is not declared and is not UTF-8.

texinfo was updated in #95910.
2020-09-18 10:21:24 +00:00

48 lines
1.4 KiB
Nix

{ lib, fetchurl, gettext, pkgconfig, texinfo, wrapGAppsHook
, buildPythonApplication, pycairo, pygobject3
, gobject-introspection, gtk3, librsvg
, alsaUtils, timidity, mpg123, vorbis-tools, csound, lilypond
}:
buildPythonApplication rec {
name = "solfege-3.23.4";
src = fetchurl {
url = "mirror://sourceforge/solfege/${name}.tar.gz";
sha256 = "0sc17vf4xz6gy0s0z9ghi68yskikdmyb4gdaxx6imrm40734k8mp";
};
patches = [
./css.patch
./menubar.patch
./texinfo.patch
./webbrowser.patch
];
nativeBuildInputs = [ gettext pkgconfig texinfo wrapGAppsHook ];
buildInputs = [ gobject-introspection gtk3 librsvg ];
propagatedBuildInputs = [ pycairo pygobject3 ];
preBuild = ''
sed -i -e 's|wav_player=.*|wav_player=${alsaUtils}/bin/aplay|' \
-e 's|midi_player=.*|midi_player=${timidity}/bin/timidity|' \
-e 's|mp3_player=.*|mp3_player=${mpg123}/bin/mpg123|' \
-e 's|ogg_player=.*|ogg_player=${vorbis-tools}/bin/ogg123|' \
-e 's|csound=.*|csound=${csound}/bin/csound|' \
-e 's|lilypond-book=.*|lilypond-book=${lilypond}/bin/lilypond-book|' \
default.config
'';
format = "other";
enableParallelBuilding = true;
meta = with lib; {
description = "Ear training program";
homepage = "http://www.solfege.org/";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor orivej ];
};
}