1 { lib, stdenv, fetchFromGitHub, fetchpatch, alsa-lib, freetype, ftgl, libjack2, libX11, lv2
2 , libGLU, libGL, pkg-config, ttf_bitstream_vera
5 stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
13 hash = "sha256-e/cvD/CtT8dY1lYcsZ21DC8pNqKXqKfC/eRXX8k01eI=";
17 # link with -lGL can remove on next update
19 name = "ui-add-lGL.patch";
20 url = "https://github.com/pantherb/setBfree/commit/756437db43fbf5481f101d8fc695f8b11192047f.patch";
21 hash = "sha256-49PYTayD4TchAApfFvj3DLc4EBTxH8LYx48TtdSRwwA=";
26 substituteInPlace common.mak \
27 --replace /usr/local "$out" \
28 --replace /usr/share/fonts/truetype/ttf-bitstream-vera "${ttf_bitstream_vera}/share/fonts/truetype"
31 nativeBuildInputs = [ pkg-config ];
33 alsa-lib freetype ftgl libjack2 libX11 lv2 libGLU libGL
37 doInstallCheck = true;
39 installCheckPhase = ''
42 test -e $out/bin/setBfreeUI
46 enableParallelBuilding = true;
49 description = "DSP tonewheel organ emulator";
50 homepage = "https://setbfree.org";
51 license = licenses.gpl2;
52 platforms = [ "x86_64-linux" "i686-linux" ]; # fails on ARM and Darwin