2021-01-17 02:30:45 +00:00
|
|
|
{ lib, fetchurl, gettext, pkg-config, texinfo, wrapGAppsHook
|
2020-05-19 22:14:25 +00:00
|
|
|
, buildPythonApplication, pycairo, pygobject3
|
|
|
|
, gobject-introspection, gtk3, librsvg
|
2021-06-10 04:10:52 +00:00
|
|
|
, alsa-utils, timidity, mpg123, vorbis-tools, csound, lilypond
|
2013-06-05 21:12:16 +00:00
|
|
|
}:
|
|
|
|
|
2020-05-19 22:14:25 +00:00
|
|
|
buildPythonApplication rec {
|
2021-08-12 21:00:21 +00:00
|
|
|
pname = "solfege";
|
|
|
|
version = "3.23.4";
|
2013-06-05 21:12:16 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-12 21:00:21 +00:00
|
|
|
url = "mirror://sourceforge/solfege/solfege-${version}.tar.gz";
|
2020-05-19 22:14:25 +00:00
|
|
|
sha256 = "0sc17vf4xz6gy0s0z9ghi68yskikdmyb4gdaxx6imrm40734k8mp";
|
2013-06-05 21:12:16 +00:00
|
|
|
};
|
|
|
|
|
2020-05-19 22:14:25 +00:00
|
|
|
patches = [
|
|
|
|
./css.patch
|
|
|
|
./menubar.patch
|
2020-09-18 10:19:42 +00:00
|
|
|
./texinfo.patch
|
2020-05-19 22:14:25 +00:00
|
|
|
./webbrowser.patch
|
|
|
|
];
|
|
|
|
|
2021-01-17 02:30:45 +00:00
|
|
|
nativeBuildInputs = [ gettext pkg-config texinfo wrapGAppsHook ];
|
2020-05-19 22:14:25 +00:00
|
|
|
buildInputs = [ gobject-introspection gtk3 librsvg ];
|
|
|
|
propagatedBuildInputs = [ pycairo pygobject3 ];
|
2013-06-05 21:12:16 +00:00
|
|
|
|
|
|
|
preBuild = ''
|
2021-06-10 04:10:52 +00:00
|
|
|
sed -i -e 's|wav_player=.*|wav_player=${alsa-utils}/bin/aplay|' \
|
2013-06-05 21:12:16 +00:00
|
|
|
-e 's|midi_player=.*|midi_player=${timidity}/bin/timidity|' \
|
|
|
|
-e 's|mp3_player=.*|mp3_player=${mpg123}/bin/mpg123|' \
|
2016-01-25 23:53:13 +00:00
|
|
|
-e 's|ogg_player=.*|ogg_player=${vorbis-tools}/bin/ogg123|' \
|
2013-06-05 21:12:16 +00:00
|
|
|
-e 's|csound=.*|csound=${csound}/bin/csound|' \
|
|
|
|
-e 's|lilypond-book=.*|lilypond-book=${lilypond}/bin/lilypond-book|' \
|
|
|
|
default.config
|
|
|
|
'';
|
|
|
|
|
2020-03-27 00:05:33 +00:00
|
|
|
format = "other";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2013-06-05 21:12:16 +00:00
|
|
|
|
2020-05-19 22:14:25 +00:00
|
|
|
meta = with lib; {
|
2013-06-05 21:12:16 +00:00
|
|
|
description = "Ear training program";
|
2020-10-02 07:58:50 +00:00
|
|
|
homepage = "https://www.solfege.org/";
|
2013-11-24 12:27:24 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2020-05-19 22:14:25 +00:00
|
|
|
maintainers = with maintainers; [ bjornfor orivej ];
|
2013-06-05 21:12:16 +00:00
|
|
|
};
|
|
|
|
}
|