mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
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 changed files with 8 additions and 14 deletions
|
@ -1,12 +1,10 @@
|
|||
{ stdenv, fetchurl, pkgconfig, pythonPackages, gettext, texinfo
|
||||
, ghostscript, librsvg, gdk-pixbuf, txt2man, timidity, mpg123
|
||||
, alsaUtils, vorbis-tools, csound, lilypond
|
||||
, makeWrapper
|
||||
, wrapGAppsHook
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (pythonPackages) python pygtk;
|
||||
in stdenv.mkDerivation rec {
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
name = "solfege-3.22.2";
|
||||
|
||||
src = fetchurl {
|
||||
|
@ -14,10 +12,9 @@ in stdenv.mkDerivation rec {
|
|||
sha256 = "1r4g93ka7i8jh5glii5nza0zq0wy4sw0gfzpvkcrhj9yr1h0jsp4";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ python pygtk gettext texinfo
|
||||
ghostscript librsvg gdk-pixbuf txt2man makeWrapper
|
||||
];
|
||||
nativeBuildInputs = [ gettext texinfo pkgconfig wrapGAppsHook ];
|
||||
buildInputs = [ librsvg ];
|
||||
propagatedBuildInputs = [ pythonPackages.pygtk ];
|
||||
|
||||
preBuild = ''
|
||||
sed -i -e 's|wav_player=.*|wav_player=${alsaUtils}/bin/aplay|' \
|
||||
|
@ -29,12 +26,9 @@ in stdenv.mkDerivation rec {
|
|||
default.config
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
set -x
|
||||
wrapProgram "$out/bin/solfege" \
|
||||
--prefix PYTHONPATH ':' "$PYTHONPATH" \
|
||||
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
|
||||
'';
|
||||
format = "other";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Ear training program";
|
||||
|
|
Loading…
Reference in a new issue