From 77882b6dc48d88de261ef2965c6616adcf074c64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cillian=20de=20R=C3=B3iste?= Date: Wed, 29 Nov 2017 21:40:59 +0100 Subject: [PATCH] mhwaveedit: fix src url (gna is dead) and use autoreconf for build --- pkgs/applications/audio/mhwaveedit/default.nix | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/audio/mhwaveedit/default.nix b/pkgs/applications/audio/mhwaveedit/default.nix index 2c6df650d5d7..3a77c7bbbf24 100644 --- a/pkgs/applications/audio/mhwaveedit/default.nix +++ b/pkgs/applications/audio/mhwaveedit/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, makeWrapper, SDL , alsaLib, gtk2, libjack2, ladspaH +{ stdenv, fetchurl, makeWrapper, SDL, alsaLib, autoreconfHook, gtk2, libjack2, ladspaH , ladspaPlugins, libsamplerate, libsndfile, pkgconfig, libpulseaudio, lame , vorbis-tools }: @@ -7,12 +7,18 @@ stdenv.mkDerivation rec { version = "1.4.23"; src = fetchurl { - url = "http://download.gna.org/mhwaveedit/${name}.tar.bz2"; - sha256 = "010rk4mr631s440q9cfgdxx2avgzysr9aq52diwdlbq9cddifli3"; + url = "https://github.com/magnush/mhwaveedit/archive/v${version}.tar.gz"; + sha256 = "1lvd54d8kpxwl4gihhznx1b5skhibz4vfxi9k2kwqg808jfgz37l"; }; - buildInputs = [ SDL alsaLib gtk2 libjack2 ladspaH libsamplerate libsndfile - pkgconfig libpulseaudio makeWrapper ]; + nativeBuildInputs = [ autoreconfHook ]; + + preAutoreconf = "(cd docgen && sh gendocs.sh)"; + + buildInputs = [ + SDL alsaLib gtk2 libjack2 ladspaH libsamplerate libsndfile + pkgconfig libpulseaudio makeWrapper + ]; configureFlags = "--with-default-ladspa-path=${ladspaPlugins}/lib/ladspa";