2015-09-15 11:26:18 +02:00
|
|
|
{ stdenv, fetchurl, alsaLib, libjack2, pkgconfig, libpulseaudio, xorg }:
|
2012-11-22 00:08:28 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "bristol";
|
2013-12-15 10:20:28 +01:00
|
|
|
version = "0.60.11";
|
2012-11-22 00:08:28 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://sourceforge/bristol/${pname}-${version}.tar.gz";
|
2013-12-15 10:20:28 +01:00
|
|
|
sha256 = "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx";
|
2012-11-22 00:08:28 +01:00
|
|
|
};
|
|
|
|
|
2017-09-14 21:24:37 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2012-11-22 00:08:28 +01:00
|
|
|
buildInputs = [
|
2017-09-14 21:24:37 +02:00
|
|
|
alsaLib libjack2 libpulseaudio xorg.libX11 xorg.libXext
|
2018-12-31 04:40:47 +01:00
|
|
|
xorg.xorgproto
|
2012-11-22 00:08:28 +01:00
|
|
|
];
|
|
|
|
|
2016-11-02 11:57:35 +01:00
|
|
|
patchPhase = "sed -i '41,43d' libbristolaudio/audioEngineJack.c"; # disable alsa/iatomic
|
|
|
|
|
|
|
|
configurePhase = "./configure --prefix=$out --enable-jack-default-audio --enable-jack-default-midi";
|
|
|
|
|
2013-01-05 17:00:38 +01: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
|
|
|
|
'';
|
|
|
|
|
2012-11-22 00:08:28 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A range of synthesiser, electric piano and organ emulations";
|
|
|
|
homepage = http://bristol.sourceforge.net;
|
|
|
|
license = licenses.gpl3;
|
2017-06-11 03:39:57 +02:00
|
|
|
platforms = ["x86_64-linux" "i686-linux"];
|
2012-11-22 00:08:28 +01:00
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
2015-05-27 21:42:15 +02:00
|
|
|
}
|