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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.1 KiB
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 10:50:54 +00:00
}:
stdenv.mkDerivation rec {
pname = "setbfree";
2023-03-25 18:08:03 +00:00
version = "0.8.12";
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=";
};
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
'';
nativeBuildInputs = [ pkg-config ];
2014-05-11 10:50:54 +00:00
buildInputs = [
alsa-lib freetype ftgl libjack2 libX11 lv2 libGLU libGL
2014-05-11 10:50:54 +00:00
ttf_bitstream_vera
];
2023-03-29 07:12:44 +00:00
doInstallCheck = true;
installCheckPhase = ''(
set -x
test -e $out/bin/setBfreeUI
)'';
enableParallelBuilding = true;
meta = with lib; {
description = "A DSP tonewheel organ emulator";
homepage = "https://setbfree.org";
license = licenses.gpl2;
platforms = [ "x86_64-linux" "i686-linux" ]; # fails on ARM and Darwin
maintainers = [ maintainers.goibhniu ];
};
}