nixpkgs-suyu/pkgs/misc/solfege/default.nix

49 lines
1.4 KiB
Nix
Raw Normal View History

2021-01-17 03:30:45 +01:00
{ lib, fetchurl, gettext, pkg-config, texinfo, wrapGAppsHook
2020-05-20 00:14:25 +02:00
, buildPythonApplication, pycairo, pygobject3
, gobject-introspection, gtk3, librsvg
, alsa-utils, timidity, mpg123, vorbis-tools, csound, lilypond
}:
2020-05-20 00:14:25 +02:00
buildPythonApplication rec {
2021-08-12 23:00:21 +02:00
pname = "solfege";
version = "3.23.4";
src = fetchurl {
2021-08-12 23:00:21 +02:00
url = "mirror://sourceforge/solfege/solfege-${version}.tar.gz";
2020-05-20 00:14:25 +02:00
sha256 = "0sc17vf4xz6gy0s0z9ghi68yskikdmyb4gdaxx6imrm40734k8mp";
};
2020-05-20 00:14:25 +02:00
patches = [
./css.patch
./menubar.patch
./texinfo.patch
2020-05-20 00:14:25 +02:00
./webbrowser.patch
];
2021-01-17 03:30:45 +01:00
nativeBuildInputs = [ gettext pkg-config texinfo wrapGAppsHook ];
2020-05-20 00:14:25 +02:00
buildInputs = [ gobject-introspection gtk3 librsvg ];
propagatedBuildInputs = [ pycairo pygobject3 ];
preBuild = ''
sed -i -e 's|wav_player=.*|wav_player=${alsa-utils}/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;
2020-05-20 00:14:25 +02:00
meta = with lib; {
description = "Ear training program";
homepage = "https://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 ];
};
}