nixpkgs/pkgs/applications/audio/setbfree/default.nix

34 lines
977 B
Nix
Raw Normal View History

{ stdenv, fetchzip, alsaLib, freetype, ftgl, libjack2, libX11, lv2
2019-11-10 19:44:34 +03:00
, libGLU, libGL, pkgconfig, ttf_bitstream_vera
2014-05-11 14:50:54 +04:00
}:
stdenv.mkDerivation rec {
pname = "setbfree";
2019-12-24 19:26:01 +03:00
version = "0.8.11";
src = fetchzip {
url = "https://github.com/pantherb/setBfree/archive/v${version}.tar.gz";
2019-12-24 19:26:01 +03:00
sha256 = "0c2wc8nkrzsy0yic4y7hjz320m3d20r8152j9dk8nsnmgjmyr2ir";
};
postPatch = ''
2014-05-11 14:50:54 +04: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
'';
nativeBuildInputs = [ pkgconfig ];
2014-05-11 14:50:54 +04:00
buildInputs = [
2019-11-10 19:44:34 +03:00
alsaLib freetype ftgl libjack2 libX11 lv2 libGLU libGL
2014-05-11 14:50:54 +04:00
ttf_bitstream_vera
];
meta = with stdenv.lib; {
description = "A DSP tonewheel organ emulator";
homepage = "http://setbfree.org";
license = licenses.gpl2;
platforms = [ "x86_64-linux" "i686-linux" ]; # fails on ARM and Darwin
maintainers = [ maintainers.goibhniu ];
};
}