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