2016-09-11 22:24:51 +01:00
|
|
|
{ stdenv, fetchurl, makeWrapper, SDL , alsaLib, gtk2, libjack2, ladspaH
|
2015-11-22 14:03:22 +00:00
|
|
|
, ladspaPlugins, libsamplerate, libsndfile, pkgconfig, libpulseaudio, lame
|
2016-01-25 23:53:13 +00:00
|
|
|
, vorbis-tools }:
|
2012-03-24 18:59:26 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mhwaveedit-${version}";
|
2013-12-21 02:05:17 +00:00
|
|
|
version = "1.4.23";
|
2012-03-24 18:59:26 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.gna.org/mhwaveedit/${name}.tar.bz2";
|
2013-12-21 02:05:17 +00:00
|
|
|
sha256 = "010rk4mr631s440q9cfgdxx2avgzysr9aq52diwdlbq9cddifli3";
|
2012-03-24 18:59:26 +00:00
|
|
|
};
|
|
|
|
|
2016-09-11 22:24:51 +01:00
|
|
|
buildInputs = [ SDL alsaLib gtk2 libjack2 ladspaH libsamplerate libsndfile
|
2015-11-22 13:49:21 +00:00
|
|
|
pkgconfig libpulseaudio makeWrapper ];
|
2012-03-24 18:59:26 +00:00
|
|
|
|
|
|
|
configureFlags = "--with-default-ladspa-path=${ladspaPlugins}/lib/ladspa";
|
|
|
|
|
2015-11-22 13:49:21 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/mhwaveedit \
|
2015-11-22 14:03:22 +00:00
|
|
|
--prefix PATH : ${lame}/bin/ \
|
2016-01-25 23:53:13 +00:00
|
|
|
--prefix PATH : ${vorbis-tools}/bin/
|
2015-11-22 13:49:21 +00:00
|
|
|
'';
|
|
|
|
|
2012-03-24 18:59:26 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-11-22 13:49:21 +00:00
|
|
|
description = "Graphical program for editing, playing and recording sound files";
|
2012-03-24 18:59:26 +00:00
|
|
|
homepage = https://gna.org/projects/mhwaveedit;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|