2018-10-03 22:04:46 +02:00
|
|
|
{ stdenv, fetchFromGitHub, makeWrapper, SDL, alsaLib, autoreconfHook, gtk2, libjack2, ladspaH
|
2015-11-22 15:03:22 +01:00
|
|
|
, ladspaPlugins, libsamplerate, libsndfile, pkgconfig, libpulseaudio, lame
|
2016-01-26 00:53:13 +01:00
|
|
|
, vorbis-tools }:
|
2012-03-24 19:59:26 +01:00
|
|
|
|
2018-10-03 22:04:46 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2012-03-24 19:59:26 +01:00
|
|
|
name = "mhwaveedit-${version}";
|
2018-10-03 22:04:46 +02:00
|
|
|
version = "1.4.24";
|
2012-03-24 19:59:26 +01:00
|
|
|
|
2018-10-03 22:04:46 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "magnush";
|
|
|
|
repo = "mhwaveedit";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "037pbq23kh8hsih994x2sv483imglwcrqrx6m8visq9c46fi0j1y";
|
2012-03-24 19:59:26 +01:00
|
|
|
};
|
|
|
|
|
2018-10-03 22:04:46 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook makeWrapper pkgconfig ];
|
2017-11-29 21:40:59 +01:00
|
|
|
|
|
|
|
preAutoreconf = "(cd docgen && sh gendocs.sh)";
|
|
|
|
|
|
|
|
buildInputs = [
|
2018-10-03 22:04:46 +02:00
|
|
|
SDL alsaLib gtk2 libjack2 ladspaH libsamplerate libsndfile libpulseaudio
|
2017-11-29 21:40:59 +01:00
|
|
|
];
|
2012-03-24 19:59:26 +01:00
|
|
|
|
2018-07-25 23:44:21 +02:00
|
|
|
configureFlags = [ "--with-default-ladspa-path=${ladspaPlugins}/lib/ladspa" ];
|
2012-03-24 19:59:26 +01:00
|
|
|
|
2015-11-22 14:49:21 +01:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/mhwaveedit \
|
2015-11-22 15:03:22 +01:00
|
|
|
--prefix PATH : ${lame}/bin/ \
|
2016-01-26 00:53:13 +01:00
|
|
|
--prefix PATH : ${vorbis-tools}/bin/
|
2015-11-22 14:49:21 +01:00
|
|
|
'';
|
|
|
|
|
2012-03-24 19:59:26 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-11-22 14:49:21 +01:00
|
|
|
description = "Graphical program for editing, playing and recording sound files";
|
2018-10-03 22:04:46 +02:00
|
|
|
homepage = https://github.com/magnush/mhwaveedit;
|
2012-03-24 19:59:26 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|