2017-11-29 20:40:59 +00:00
|
|
|
{ stdenv, fetchurl, makeWrapper, SDL, alsaLib, autoreconfHook, 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 {
|
2017-11-29 20:40:59 +00:00
|
|
|
url = "https://github.com/magnush/mhwaveedit/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "1lvd54d8kpxwl4gihhznx1b5skhibz4vfxi9k2kwqg808jfgz37l";
|
2012-03-24 18:59:26 +00:00
|
|
|
};
|
|
|
|
|
2017-11-29 20:40:59 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
preAutoreconf = "(cd docgen && sh gendocs.sh)";
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
SDL alsaLib gtk2 libjack2 ladspaH libsamplerate libsndfile
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|