nixpkgs/pkgs/applications/audio/bristol/default.nix

35 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, alsaLib, libjack2, pkgconfig, libpulseaudio, xorg }:
stdenv.mkDerivation rec {
pname = "bristol";
version = "0.60.11";
src = fetchurl {
url = "mirror://sourceforge/bristol/${pname}-${version}.tar.gz";
sha256 = "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
alsaLib libjack2 libpulseaudio xorg.libX11 xorg.libXext
xorg.xorgproto
];
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";
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
'';
meta = with stdenv.lib; {
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 ];
};
}