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 10:50:54 +00:00
|
|
|
}:
|
2014-05-05 20:57:48 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "setbfree";
|
2023-03-25 18:08:03 +00:00
|
|
|
version = "0.8.12";
|
2014-05-05 20:57:48 +00:00
|
|
|
|
2021-12-13 14:37:42 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pantherb";
|
|
|
|
repo = "setBfree";
|
|
|
|
rev = "v${version}";
|
2023-03-25 18:08:03 +00:00
|
|
|
sha256 = "sha256-e/cvD/CtT8dY1lYcsZ21DC8pNqKXqKfC/eRXX8k01eI=";
|
2014-05-05 20:57:48 +00:00
|
|
|
};
|
|
|
|
|
2019-10-13 15:29:12 +00:00
|
|
|
postPatch = ''
|
2023-03-29 07:12:44 +00:00
|
|
|
substituteInPlace common.mak \
|
|
|
|
--replace /usr/local "$out" \
|
|
|
|
--replace /usr/share/fonts/truetype/ttf-bitstream-vera "${ttf_bitstream_vera}/share/fonts/truetype"
|
2014-05-11 10:50:54 +00:00
|
|
|
'';
|
2014-05-05 20:57:48 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2014-05-11 10:50:54 +00:00
|
|
|
buildInputs = [
|
2021-06-10 02:57:09 +00:00
|
|
|
alsa-lib freetype ftgl libjack2 libX11 lv2 libGLU libGL
|
2014-05-11 10:50:54 +00:00
|
|
|
ttf_bitstream_vera
|
|
|
|
];
|
2014-05-05 20:57:48 +00:00
|
|
|
|
2023-03-29 07:12:44 +00:00
|
|
|
doInstallCheck = true;
|
|
|
|
|
|
|
|
installCheckPhase = ''(
|
|
|
|
set -x
|
|
|
|
test -e $out/bin/setBfreeUI
|
|
|
|
)'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-05-05 20:57:48 +00:00
|
|
|
description = "A DSP tonewheel organ emulator";
|
2022-01-03 15:53:12 +00:00
|
|
|
homepage = "https://setbfree.org";
|
2014-05-05 20:57:48 +00:00
|
|
|
license = licenses.gpl2;
|
2019-10-13 15:29:12 +00:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ]; # fails on ARM and Darwin
|
2014-05-05 20:57:48 +00:00
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|