2021-06-10 04:57:09 +02:00
|
|
|
{ lib, stdenv, fetchzip, alsa-lib, freetype, ftgl, libjack2, libX11, lv2
|
2021-01-19 07:50:56 +01:00
|
|
|
, libGLU, libGL, pkg-config, ttf_bitstream_vera
|
2014-05-11 12:50:54 +02:00
|
|
|
}:
|
2014-05-05 22:57:48 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "setbfree";
|
2019-12-24 17:26:01 +01:00
|
|
|
version = "0.8.11";
|
2014-05-05 22:57:48 +02:00
|
|
|
|
2019-10-13 17:29:12 +02:00
|
|
|
src = fetchzip {
|
2014-05-05 22:57:48 +02:00
|
|
|
url = "https://github.com/pantherb/setBfree/archive/v${version}.tar.gz";
|
2019-12-24 17:26:01 +01:00
|
|
|
sha256 = "0c2wc8nkrzsy0yic4y7hjz320m3d20r8152j9dk8nsnmgjmyr2ir";
|
2014-05-05 22:57:48 +02:00
|
|
|
};
|
|
|
|
|
2019-10-13 17:29:12 +02:00
|
|
|
postPatch = ''
|
2014-05-11 12:50:54 +02:00
|
|
|
sed 's#/usr/local#$(out)#g' -i common.mak
|
|
|
|
sed 's#/usr/share/fonts/truetype/ttf-bitstream-vera#${ttf_bitstream_vera}/share/fonts/truetype#g' \
|
|
|
|
-i b_synth/Makefile
|
|
|
|
'';
|
2014-05-05 22:57:48 +02:00
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2014-05-11 12:50:54 +02:00
|
|
|
buildInputs = [
|
2021-06-10 04:57:09 +02:00
|
|
|
alsa-lib freetype ftgl libjack2 libX11 lv2 libGLU libGL
|
2014-05-11 12:50:54 +02:00
|
|
|
ttf_bitstream_vera
|
|
|
|
];
|
2014-05-05 22:57:48 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2014-05-05 22:57:48 +02:00
|
|
|
description = "A DSP tonewheel organ emulator";
|
2019-10-13 17:29:12 +02:00
|
|
|
homepage = "http://setbfree.org";
|
2014-05-05 22:57:48 +02:00
|
|
|
license = licenses.gpl2;
|
2019-10-13 17:29:12 +02:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ]; # fails on ARM and Darwin
|
2014-05-05 22:57:48 +02:00
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|