From 1588178f28d57f17e6237d58a76cbd6ef8170fc4 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Mon, 22 Aug 2022 18:47:41 +0200 Subject: solfege: fix failing build --- pkgs/misc/solfege/default.nix | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) (limited to 'pkgs') diff --git a/pkgs/misc/solfege/default.nix b/pkgs/misc/solfege/default.nix index 41971278ca9ca..c7ff33ec26d16 100644 --- a/pkgs/misc/solfege/default.nix +++ b/pkgs/misc/solfege/default.nix @@ -2,6 +2,7 @@ , buildPythonApplication, pycairo, pygobject3 , gobject-introspection, gtk3, librsvg , alsa-utils, timidity, mpg123, vorbis-tools, csound, lilypond +, automake, autoconf }: buildPythonApplication rec { @@ -9,7 +10,7 @@ buildPythonApplication rec { version = "3.23.4"; src = fetchurl { - url = "mirror://sourceforge/solfege/solfege-${version}.tar.gz"; + url = "https://alpha.gnu.org/gnu/solfege/solfege-${version}.tar.gz"; sha256 = "0sc17vf4xz6gy0s0z9ghi68yskikdmyb4gdaxx6imrm40734k8mp"; }; @@ -20,9 +21,34 @@ buildPythonApplication rec { ./webbrowser.patch ]; - nativeBuildInputs = [ gettext pkg-config texinfo wrapGAppsHook ]; - buildInputs = [ gobject-introspection gtk3 librsvg ]; - propagatedBuildInputs = [ pycairo pygobject3 ]; + preConfigure = '' + aclocal + autoconf + ''; + + nativeBuildInputs = [ + automake + autoconf + + gettext + pkg-config + texinfo + + # https://github.com/NixOS/nixpkgs/issues/56943#issuecomment-1131643663 + gobject-introspection + wrapGAppsHook + ]; + + buildInputs = [ + gobject-introspection + gtk3 + librsvg + ]; + + propagatedBuildInputs = [ + pycairo + pygobject3 + ]; preBuild = '' sed -i -e 's|wav_player=.*|wav_player=${alsa-utils}/bin/aplay|' \ -- cgit 1.4.1