Files
nixpkgs/pkgs/by-name/se/setbfree/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

75 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
alsa-lib,
freetype,
ftgl,
libjack2,
libX11,
lv2,
libGLU,
libGL,
pkg-config,
ttf_bitstream_vera,
nix-update-script,
}:
let
version = "0.8.13";
in
stdenv.mkDerivation {
pname = "setbfree";
inherit version;
src = fetchFromGitHub {
owner = "pantherb";
repo = "setBfree";
rev = "v${version}";
hash = "sha256-jtiyJntaFnAVeC1Rvkzi3wNodyJpEQKgnOAP7++36wo=";
};
postPatch = ''
substituteInPlace common.mak \
--replace /usr/local "$out" \
--replace /usr/share/fonts/truetype/ttf-bitstream-vera "${ttf_bitstream_vera}/share/fonts/truetype"
'';
nativeBuildInputs = [ pkg-config ];
buildInputs = [
alsa-lib
freetype
ftgl
libjack2
libX11
lv2
libGLU
libGL
ttf_bitstream_vera
];
doInstallCheck = true;
installCheckPhase = ''
(
set -x;
test -e $out/bin/setBfreeUI
)
'';
enableParallelBuilding = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "DSP tonewheel organ emulator";
homepage = "https://setbfree.org";
license = lib.licenses.gpl2;
platforms = [
"x86_64-linux"
"i686-linux"
]; # fails on ARM and Darwin
broken = stdenv.hostPlatform.isAarch64;
maintainers = [ lib.maintainers.l1npengtul ];
};
}