2021-12-24 04:21:11 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, alsa-lib, freetype, ftgl, libjack2, libX11, lv2
|
2021-02-05 17:12:51 +00:00
|
|
|
, libGLU, libGL, pkg-config, ttf_bitstream_vera
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "setbfree";
|
|
|
|
version = "0.8.11";
|
|
|
|
|
2021-12-24 04:21:11 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pantherb";
|
|
|
|
repo = "setBfree";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-OYrsq3zVaotmS1KUgDIQbVQgxpfweMKiB17/PC1iXDA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
alsa-lib freetype ftgl libjack2 libX11 lv2 libGLU libGL
|
2020-04-24 23:36:52 +00:00
|
|
|
ttf_bitstream_vera
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A DSP tonewheel organ emulator";
|
2022-01-03 16:56:52 +00:00
|
|
|
homepage = "https://setbfree.org";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ]; # fails on ARM and Darwin
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|