2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, SDL, alsaLib, autoreconfHook, gtk2, libjack2, ladspaH
|
2021-01-19 06:50:56 +00:00
|
|
|
, ladspaPlugins, libsamplerate, libsndfile, pkg-config, libpulseaudio, lame
|
2016-01-25 23:53:13 +00:00
|
|
|
, vorbis-tools }:
|
2012-03-24 18:59:26 +00:00
|
|
|
|
2018-10-03 20:04:46 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "mhwaveedit";
|
2018-10-03 20:04:46 +00:00
|
|
|
version = "1.4.24";
|
2012-03-24 18:59:26 +00:00
|
|
|
|
2018-10-03 20:04:46 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "magnush";
|
|
|
|
repo = "mhwaveedit";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "037pbq23kh8hsih994x2sv483imglwcrqrx6m8visq9c46fi0j1y";
|
2012-03-24 18:59:26 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook makeWrapper pkg-config ];
|
2017-11-29 20:40:59 +00:00
|
|
|
|
|
|
|
preAutoreconf = "(cd docgen && sh gendocs.sh)";
|
|
|
|
|
|
|
|
buildInputs = [
|
2018-10-03 20:04:46 +00: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 21:44:21 +00: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
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-11-22 13:49:21 +00:00
|
|
|
description = "Graphical program for editing, playing and recording sound files";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/magnush/mhwaveedit";
|
2012-03-24 18:59:26 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|