2020-05-20 00:14:25 +02:00
|
|
|
{ lib, fetchurl, gettext, pkgconfig, texinfo, wrapGAppsHook
|
|
|
|
, buildPythonApplication, pycairo, pygobject3
|
|
|
|
, gobject-introspection, gtk3, librsvg
|
|
|
|
, alsaUtils, timidity, mpg123, vorbis-tools, csound, lilypond
|
2013-06-05 23:12:16 +02:00
|
|
|
}:
|
|
|
|
|
2020-05-20 00:14:25 +02:00
|
|
|
buildPythonApplication rec {
|
|
|
|
name = "solfege-3.23.4";
|
2013-06-05 23:12:16 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/solfege/${name}.tar.gz";
|
2020-05-20 00:14:25 +02:00
|
|
|
sha256 = "0sc17vf4xz6gy0s0z9ghi68yskikdmyb4gdaxx6imrm40734k8mp";
|
2013-06-05 23:12:16 +02:00
|
|
|
};
|
|
|
|
|
2020-05-20 00:14:25 +02:00
|
|
|
patches = [
|
|
|
|
./css.patch
|
|
|
|
./menubar.patch
|
|
|
|
./webbrowser.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ gettext pkgconfig texinfo wrapGAppsHook ];
|
|
|
|
buildInputs = [ gobject-introspection gtk3 librsvg ];
|
|
|
|
propagatedBuildInputs = [ pycairo pygobject3 ];
|
2013-06-05 23:12:16 +02:00
|
|
|
|
|
|
|
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|' \
|
2016-01-26 00:53:13 +01:00
|
|
|
-e 's|ogg_player=.*|ogg_player=${vorbis-tools}/bin/ogg123|' \
|
2013-06-05 23:12:16 +02:00
|
|
|
-e 's|csound=.*|csound=${csound}/bin/csound|' \
|
|
|
|
-e 's|lilypond-book=.*|lilypond-book=${lilypond}/bin/lilypond-book|' \
|
|
|
|
default.config
|
|
|
|
'';
|
|
|
|
|
2020-03-27 01:05:33 +01:00
|
|
|
format = "other";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2013-06-05 23:12:16 +02:00
|
|
|
|
2020-05-20 00:14:25 +02:00
|
|
|
meta = with lib; {
|
2013-06-05 23:12:16 +02:00
|
|
|
description = "Ear training program";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.solfege.org/";
|
2013-11-24 13:27:24 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2020-05-20 00:14:25 +02:00
|
|
|
maintainers = with maintainers; [ bjornfor orivej ];
|
2013-06-05 23:12:16 +02:00
|
|
|
};
|
|
|
|
}
|