summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnthony Roussel <anthony@roussel.dev>2022-08-22 18:47:41 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2022-08-22 22:06:38 +0200
commit1588178f28d57f17e6237d58a76cbd6ef8170fc4 (patch)
treeee1f6b15823c5d9a17713530defbcf423484013a
parent0edd143cb8fddcd98ca645a1e7fd79787f27df30 (diff)
downloadnixpkgs-1588178f28d57f17e6237d58a76cbd6ef8170fc4.tar
nixpkgs-1588178f28d57f17e6237d58a76cbd6ef8170fc4.tar.gz
nixpkgs-1588178f28d57f17e6237d58a76cbd6ef8170fc4.tar.bz2
nixpkgs-1588178f28d57f17e6237d58a76cbd6ef8170fc4.tar.lz
nixpkgs-1588178f28d57f17e6237d58a76cbd6ef8170fc4.tar.xz
nixpkgs-1588178f28d57f17e6237d58a76cbd6ef8170fc4.tar.zst
nixpkgs-1588178f28d57f17e6237d58a76cbd6ef8170fc4.zip
solfege: fix failing build
-rw-r--r--pkgs/misc/solfege/default.nix34
1 files changed, 30 insertions, 4 deletions
diff --git a/pkgs/misc/solfege/default.nix b/pkgs/misc/solfege/default.nix
index 41971278ca9..c7ff33ec26d 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|' \