2021-06-28 23:13:55 +00:00
|
|
|
{ lib, stdenv, fetchurl, alsa-lib, libjack2, pkg-config, libpulseaudio, xorg }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bristol";
|
|
|
|
version = "0.60.11";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/bristol/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
alsa-lib libjack2 libpulseaudio xorg.libX11 xorg.libXext
|
2020-04-24 23:36:52 +00:00
|
|
|
xorg.xorgproto
|
|
|
|
];
|
|
|
|
|
|
|
|
patchPhase = "sed -i '41,43d' libbristolaudio/audioEngineJack.c"; # disable alsa/iatomic
|
|
|
|
|
|
|
|
configurePhase = "./configure --prefix=$out --enable-jack-default-audio --enable-jack-default-midi";
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
sed -e "s@\`which bristol\`@$out/bin/bristol@g" -i bin/startBristol
|
|
|
|
sed -e "s@\`which brighton\`@$out/bin/brighton@g" -i bin/startBristol
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A range of synthesiser, electric piano and organ emulations";
|
|
|
|
homepage = "http://bristol.sourceforge.net";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = ["x86_64-linux" "i686-linux"];
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|