2021-06-10 03:57:09 +01:00
|
|
|
{ lib, stdenv, fetchurl, alsa-lib, libjack2, pkg-config, libpulseaudio, xorg }:
|
2012-11-21 23:08:28 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "bristol";
|
2013-12-15 09:20:28 +00:00
|
|
|
version = "0.60.11";
|
2012-11-21 23:08:28 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/bristol/${pname}-${version}.tar.gz";
|
2013-12-15 09:20:28 +00:00
|
|
|
sha256 = "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx";
|
2012-11-21 23:08:28 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2012-11-21 23:08:28 +00:00
|
|
|
buildInputs = [
|
2021-06-10 03:57:09 +01:00
|
|
|
alsa-lib libjack2 libpulseaudio xorg.libX11 xorg.libXext
|
2018-12-31 03:40:47 +00:00
|
|
|
xorg.xorgproto
|
2012-11-21 23:08:28 +00:00
|
|
|
];
|
|
|
|
|
2016-11-02 10:57:35 +00:00
|
|
|
patchPhase = "sed -i '41,43d' libbristolaudio/audioEngineJack.c"; # disable alsa/iatomic
|
|
|
|
|
|
|
|
configurePhase = "./configure --prefix=$out --enable-jack-default-audio --enable-jack-default-midi";
|
|
|
|
|
2022-05-19 15:28:01 +01:00
|
|
|
# Workaround build failure on -fno-common toolchains like upstream
|
|
|
|
# gcc-10. Otherwise build fails as:
|
|
|
|
# ld: brightonCLI.o:/build/bristol-0.60.11/brighton/brightonCLI.c:139: multiple definition of
|
|
|
|
# `event'; brightonMixerMenu.o:/build/bristol-0.60.11/brighton/brightonMixerMenu.c:1182: first defined here
|
|
|
|
NIX_CFLAGS_COMPILE = "-fcommon";
|
|
|
|
|
2013-01-05 16:00:38 +00:00
|
|
|
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-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2012-11-21 23:08:28 +00:00
|
|
|
description = "A range of synthesiser, electric piano and organ emulations";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://bristol.sourceforge.net";
|
2012-11-21 23:08:28 +00:00
|
|
|
license = licenses.gpl3;
|
2017-06-11 02:39:57 +01:00
|
|
|
platforms = ["x86_64-linux" "i686-linux"];
|
2012-11-21 23:08:28 +00:00
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
2015-05-27 20:42:15 +01:00
|
|
|
}
|