2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, fftwFloat, gtk2, ladspaPlugins, libjack2, liblo, libxml2
|
2021-01-19 06:50:56 +00:00
|
|
|
, makeWrapper, pkg-config, perlPackages
|
2016-02-14 23:42:16 +00:00
|
|
|
}:
|
2016-02-12 12:37:51 +00:00
|
|
|
|
2020-10-13 08:34:31 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.95.0";
|
2022-03-22 16:57:23 +00:00
|
|
|
pname = "jamin";
|
2016-02-12 12:37:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-10-13 08:34:31 +00:00
|
|
|
url = "mirror://sourceforge/jamin/jamin-${version}.tar.gz";
|
2016-02-12 12:37:51 +00:00
|
|
|
sha256 = "0g5v74cm0q3p3pzl6xmnp4rqayaymfli7c6z8s78h9rgd24fwbvn";
|
|
|
|
};
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ pkg-config makeWrapper ];
|
|
|
|
buildInputs = [ fftwFloat gtk2 ladspaPlugins libjack2 liblo libxml2 ]
|
2018-10-12 22:56:15 +00:00
|
|
|
++ (with perlPackages; [ perl XMLParser ]);
|
|
|
|
|
2022-05-15 12:28:29 +00:00
|
|
|
# Workaround build failure on -fno-common toolchains like upstream
|
|
|
|
# gcc-10. Otherwise build fails as:
|
|
|
|
# ld: jamin-preferences.o:/build/jamin-0.95.0/src/hdeq.h:64: multiple definition of
|
|
|
|
# `l_notebook1'; jamin-callbacks.o:/build/jamin-0.95.0/src/hdeq.h:64: first defined here
|
|
|
|
NIX_CFLAGS_COMPILE = "-fcommon";
|
|
|
|
|
2019-10-30 02:23:29 +00:00
|
|
|
NIX_LDFLAGS = "-ldl";
|
2019-02-10 13:14:33 +00:00
|
|
|
|
2016-02-12 12:37:51 +00:00
|
|
|
postInstall = ''
|
2016-02-14 23:42:16 +00:00
|
|
|
wrapProgram $out/bin/jamin --set LADSPA_PATH ${ladspaPlugins}/lib/ladspa
|
2016-02-12 12:37:51 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://jamin.sourceforge.net";
|
2016-02-12 12:37:51 +00:00
|
|
|
description = "JACK Audio Mastering interface";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.nico202 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|