2021-12-13 14:37:42 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, alsa-lib, freetype, ftgl, libjack2, libX11, lv2
|
2021-01-19 06:50:56 +00:00
|
|
|
, libGLU, libGL, pkg-config, ttf_bitstream_vera
|
2014-05-11 11:50:54 +01:00
|
|
|
}:
|
2014-05-05 21:57:48 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "setbfree";
|
2019-12-24 16:26:01 +00:00
|
|
|
version = "0.8.11";
|
2014-05-05 21:57:48 +01:00
|
|
|
|
2021-12-13 14:37:42 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pantherb";
|
|
|
|
repo = "setBfree";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-OYrsq3zVaotmS1KUgDIQbVQgxpfweMKiB17/PC1iXDA=";
|
2014-05-05 21:57:48 +01:00
|
|
|
};
|
|
|
|
|
2019-10-13 16:29:12 +01:00
|
|
|
postPatch = ''
|
2014-05-11 11:50:54 +01: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 21:57:48 +01:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2014-05-11 11:50:54 +01:00
|
|
|
buildInputs = [
|
2021-06-10 03:57:09 +01:00
|
|
|
alsa-lib freetype ftgl libjack2 libX11 lv2 libGLU libGL
|
2014-05-11 11:50:54 +01:00
|
|
|
ttf_bitstream_vera
|
|
|
|
];
|
2014-05-05 21:57:48 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-05-05 21:57:48 +01:00
|
|
|
description = "A DSP tonewheel organ emulator";
|
2022-01-03 15:53:12 +00:00
|
|
|
homepage = "https://setbfree.org";
|
2014-05-05 21:57:48 +01:00
|
|
|
license = licenses.gpl2;
|
2019-10-13 16:29:12 +01:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ]; # fails on ARM and Darwin
|
2014-05-05 21:57:48 +01:00
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|