lol
at 22.05-pre 48 lines 1.5 kB view raw
1{ lib, fetchurl, gettext, pkg-config, texinfo, wrapGAppsHook 2, buildPythonApplication, pycairo, pygobject3 3, gobject-introspection, gtk3, librsvg 4, alsa-utils, timidity, mpg123, vorbis-tools, csound, lilypond 5}: 6 7buildPythonApplication rec { 8 pname = "solfege"; 9 version = "3.23.4"; 10 11 src = fetchurl { 12 url = "mirror://sourceforge/solfege/solfege-${version}.tar.gz"; 13 sha256 = "0sc17vf4xz6gy0s0z9ghi68yskikdmyb4gdaxx6imrm40734k8mp"; 14 }; 15 16 patches = [ 17 ./css.patch 18 ./menubar.patch 19 ./texinfo.patch 20 ./webbrowser.patch 21 ]; 22 23 nativeBuildInputs = [ gettext pkg-config texinfo wrapGAppsHook ]; 24 buildInputs = [ gobject-introspection gtk3 librsvg ]; 25 propagatedBuildInputs = [ pycairo pygobject3 ]; 26 27 preBuild = '' 28 sed -i -e 's|wav_player=.*|wav_player=${alsa-utils}/bin/aplay|' \ 29 -e 's|midi_player=.*|midi_player=${timidity}/bin/timidity|' \ 30 -e 's|mp3_player=.*|mp3_player=${mpg123}/bin/mpg123|' \ 31 -e 's|ogg_player=.*|ogg_player=${vorbis-tools}/bin/ogg123|' \ 32 -e 's|csound=.*|csound=${csound}/bin/csound|' \ 33 -e 's|lilypond-book=.*|lilypond-book=${lilypond}/bin/lilypond-book|' \ 34 default.config 35 ''; 36 37 format = "other"; 38 39 enableParallelBuilding = true; 40 41 meta = with lib; { 42 description = "Ear training program"; 43 homepage = "https://www.solfege.org/"; 44 license = licenses.gpl3; 45 platforms = platforms.linux; 46 maintainers = with maintainers; [ bjornfor orivej ]; 47 }; 48}