nixpkgs/pkgs/misc/solfege/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

75 lines
1.7 KiB
Nix
Raw Normal View History

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
, gdk-pixbuf, gobject-introspection, gtk3, librsvg
, alsa-utils, timidity, mpg123, vorbis-tools, csound, lilypond
2022-08-23 21:54:20 +00:00
, automake, autoconf, txt2man
}:
2020-05-19 22:14:25 +00:00
buildPythonApplication rec {
2021-08-12 21:00:21 +00:00
pname = "solfege";
version = "3.23.4";
src = fetchurl {
2022-08-22 16:47:41 +00:00
url = "https://alpha.gnu.org/gnu/solfege/solfege-${version}.tar.gz";
2020-05-19 22:14:25 +00:00
sha256 = "0sc17vf4xz6gy0s0z9ghi68yskikdmyb4gdaxx6imrm40734k8mp";
};
2020-05-19 22:14:25 +00:00
patches = [
./css.patch
./menubar.patch
./texinfo.patch
2020-05-19 22:14:25 +00:00
./webbrowser.patch
];
2022-08-22 16:47:41 +00:00
preConfigure = ''
aclocal
autoconf
'';
nativeBuildInputs = [
automake
autoconf
gdk-pixbuf
2022-08-22 16:47:41 +00:00
gettext
pkg-config
texinfo
2022-08-23 21:54:20 +00:00
txt2man
2022-08-22 16:47:41 +00:00
gobject-introspection
wrapGAppsHook
];
buildInputs = [
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-19 22:14:25 +00:00
meta = with lib; {
description = "Ear training program";
2022-08-22 16:45:55 +00:00
homepage = "https://www.gnu.org/software/solfege/";
license = licenses.gpl3Only;
2013-11-24 12:27:24 +00:00
platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor orivej anthonyroussel ];
2023-11-23 21:09:35 +00:00
mainProgram = "solfege";
};
}