nixpkgs/pkgs/misc/solfege/default.nix

47 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, pythonPackages, gettext, texinfo
2016-10-14 01:03:12 +03:00
, ghostscript, librsvg, gdk_pixbuf, txt2man, timidity, mpg123
, alsaUtils, vorbis-tools, csound, lilypond
, makeWrapper
}:
let
inherit (pythonPackages) python pygtk;
in stdenv.mkDerivation rec {
name = "solfege-3.22.2";
src = fetchurl {
url = "mirror://sourceforge/solfege/${name}.tar.gz";
sha256 = "1r4g93ka7i8jh5glii5nza0zq0wy4sw0gfzpvkcrhj9yr1h0jsp4";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ python pygtk gettext texinfo
2016-10-14 01:03:12 +03:00
ghostscript librsvg gdk_pixbuf txt2man makeWrapper
];
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|' \
-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
'';
postInstall = ''
set -x
wrapProgram "$out/bin/solfege" \
--prefix PYTHONPATH ':' "$PYTHONPATH" \
2014-02-28 04:40:04 +04:00
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
'';
2013-11-24 16:27:24 +04:00
meta = with stdenv.lib; {
description = "Ear training program";
homepage = http://www.solfege.org/;
2013-11-24 16:27:24 +04:00
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = [ maintainers.bjornfor ];
};
}