3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/setbfree/default.nix

36 lines
987 B
Nix
Raw Normal View History

2021-12-13 14:37:42 +00:00
{ lib, stdenv, fetchFromGitHub, alsa-lib, freetype, ftgl, libjack2, libX11, lv2
, libGLU, libGL, pkg-config, ttf_bitstream_vera
2014-05-11 11:50:54 +01:00
}:
stdenv.mkDerivation rec {
pname = "setbfree";
2019-12-24 16:26:01 +00:00
version = "0.8.11";
2021-12-13 14:37:42 +00:00
src = fetchFromGitHub {
owner = "pantherb";
repo = "setBfree";
rev = "v${version}";
sha256 = "sha256-OYrsq3zVaotmS1KUgDIQbVQgxpfweMKiB17/PC1iXDA=";
};
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
'';
nativeBuildInputs = [ pkg-config ];
2014-05-11 11:50:54 +01:00
buildInputs = [
alsa-lib freetype ftgl libjack2 libX11 lv2 libGLU libGL
2014-05-11 11:50:54 +01:00
ttf_bitstream_vera
];
meta = with 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 ];
};
}