2018-10-03 21:04:46 +01:00
|
|
|
{ stdenv, fetchFromGitHub, 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
|
|
|
|
2018-10-03 21:04:46 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mhwaveedit";
|
2018-10-03 21:04:46 +01:00
|
|
|
version = "1.4.24";
|
2012-03-24 18:59:26 +00:00
|
|
|
|
2018-10-03 21:04:46 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "magnush";
|
|
|
|
repo = "mhwaveedit";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "037pbq23kh8hsih994x2sv483imglwcrqrx6m8visq9c46fi0j1y";
|
2012-03-24 18:59:26 +00:00
|
|
|
};
|
|
|
|
|
2018-10-03 21:04:46 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook makeWrapper pkgconfig ];
|
2017-11-29 20:40:59 +00:00
|
|
|
|
|
|
|
preAutoreconf = "(cd docgen && sh gendocs.sh)";
|
|
|
|
|
|
|
|
buildInputs = [
|
2018-10-03 21:04:46 +01:00
|
|
|
SDL alsaLib gtk2 libjack2 ladspaH libsamplerate libsndfile libpulseaudio
|
2017-11-29 20:40:59 +00:00
|
|
|
];
|
2012-03-24 18:59:26 +00:00
|
|
|
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [ "--with-default-ladspa-path=${ladspaPlugins}/lib/ladspa" ];
|
2012-03-24 18:59:26 +00:00
|
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/magnush/mhwaveedit";
|
2012-03-24 18:59:26 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|