2015-09-15 12:26:18 +03:00
|
|
|
{ stdenv, fetchurl, alsaLib, libjack2, pkgconfig, libpulseaudio, xorg }:
|
2012-11-22 03:08:28 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "bristol";
|
2013-12-15 13:20:28 +04:00
|
|
|
version = "0.60.11";
|
2012-11-22 03:08:28 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 15:41:18 +03:00
|
|
|
url = "mirror://sourceforge/bristol/${pname}-${version}.tar.gz";
|
2013-12-15 13:20:28 +04:00
|
|
|
sha256 = "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx";
|
2012-11-22 03:08:28 +04:00
|
|
|
};
|
|
|
|
|
2017-09-14 22:24:37 +03:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2012-11-22 03:08:28 +04:00
|
|
|
buildInputs = [
|
2017-09-14 22:24:37 +03:00
|
|
|
alsaLib libjack2 libpulseaudio xorg.libX11 xorg.libXext
|
2018-12-31 06:40:47 +03:00
|
|
|
xorg.xorgproto
|
2012-11-22 03:08:28 +04:00
|
|
|
];
|
|
|
|
|
2016-11-02 13:57:35 +03: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 20:00:38 +04: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 03:08:28 +04:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A range of synthesiser, electric piano and organ emulations";
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "http://bristol.sourceforge.net";
|
2012-11-22 03:08:28 +04:00
|
|
|
license = licenses.gpl3;
|
2017-06-11 04:39:57 +03:00
|
|
|
platforms = ["x86_64-linux" "i686-linux"];
|
2012-11-22 03:08:28 +04:00
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
2015-05-27 22:42:15 +03:00
|
|
|
}
|