solfege: fix run
It was failing with: Traceback (most recent call last): File "/nix/store/…-solfege-3.22.2/bin/.solfege-wrapped", line 55, in <module> from solfege import presetup File "/nix/store/…-solfege-3.22.2/share/solfege/solfege/presetup.py", line 22, in <module> import gtk ImportError: No module named gtk
This commit is contained in:
parent
c20428ee24
commit
dd166f4cb4
|
@ -1,12 +1,10 @@
|
||||||
{ stdenv, fetchurl, pkgconfig, pythonPackages, gettext, texinfo
|
{ stdenv, fetchurl, pkgconfig, pythonPackages, gettext, texinfo
|
||||||
, ghostscript, librsvg, gdk-pixbuf, txt2man, timidity, mpg123
|
, ghostscript, librsvg, gdk-pixbuf, txt2man, timidity, mpg123
|
||||||
, alsaUtils, vorbis-tools, csound, lilypond
|
, alsaUtils, vorbis-tools, csound, lilypond
|
||||||
, makeWrapper
|
, wrapGAppsHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
pythonPackages.buildPythonApplication rec {
|
||||||
inherit (pythonPackages) python pygtk;
|
|
||||||
in stdenv.mkDerivation rec {
|
|
||||||
name = "solfege-3.22.2";
|
name = "solfege-3.22.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -14,10 +12,9 @@ in stdenv.mkDerivation rec {
|
||||||
sha256 = "1r4g93ka7i8jh5glii5nza0zq0wy4sw0gfzpvkcrhj9yr1h0jsp4";
|
sha256 = "1r4g93ka7i8jh5glii5nza0zq0wy4sw0gfzpvkcrhj9yr1h0jsp4";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ gettext texinfo pkgconfig wrapGAppsHook ];
|
||||||
buildInputs = [ python pygtk gettext texinfo
|
buildInputs = [ librsvg ];
|
||||||
ghostscript librsvg gdk-pixbuf txt2man makeWrapper
|
propagatedBuildInputs = [ pythonPackages.pygtk ];
|
||||||
];
|
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
sed -i -e 's|wav_player=.*|wav_player=${alsaUtils}/bin/aplay|' \
|
sed -i -e 's|wav_player=.*|wav_player=${alsaUtils}/bin/aplay|' \
|
||||||
|
@ -29,12 +26,9 @@ in stdenv.mkDerivation rec {
|
||||||
default.config
|
default.config
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
format = "other";
|
||||||
set -x
|
|
||||||
wrapProgram "$out/bin/solfege" \
|
enableParallelBuilding = true;
|
||||||
--prefix PYTHONPATH ':' "$PYTHONPATH" \
|
|
||||||
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Ear training program";
|
description = "Ear training program";
|
||||||
|
|
Loading…
Reference in a new issue