bristol: modernize
This commit is contained in:
parent
a8ed65c73f
commit
9de2a61ecd
@ -5,8 +5,10 @@
|
|||||||
alsa-lib,
|
alsa-lib,
|
||||||
libjack2,
|
libjack2,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
|
libX11,
|
||||||
|
libXext,
|
||||||
|
xorgproto,
|
||||||
libpulseaudio,
|
libpulseaudio,
|
||||||
xorg,
|
|
||||||
copyDesktopItems,
|
copyDesktopItems,
|
||||||
makeDesktopItem,
|
makeDesktopItem,
|
||||||
}:
|
}:
|
||||||
@ -17,20 +19,21 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/bristol/${pname}-${version}.tar.gz";
|
url = "mirror://sourceforge/bristol/${pname}-${version}.tar.gz";
|
||||||
sha256 = "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx";
|
hash = "sha256-fR8LvQ19MD/HfGuVSbYXCNeoO03AB4GAEbH1XR+pIro=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
copyDesktopItems
|
copyDesktopItems
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
alsa-lib
|
alsa-lib
|
||||||
libjack2
|
libjack2
|
||||||
libpulseaudio
|
libpulseaudio
|
||||||
xorg.libX11
|
libX11
|
||||||
xorg.libXext
|
libXext
|
||||||
xorg.xorgproto
|
xorgproto
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -38,7 +41,10 @@ stdenv.mkDerivation rec {
|
|||||||
sed -i '35i void doPitchWheel(Baudio *baudio);' bristol/bristolmemorymoog.c
|
sed -i '35i void doPitchWheel(Baudio *baudio);' bristol/bristolmemorymoog.c
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configurePhase = "./configure --prefix=$out --enable-jack-default-audio --enable-jack-default-midi";
|
configureFlags = [
|
||||||
|
"--enable-jack-default-audio"
|
||||||
|
"--enable-jack-default-midi"
|
||||||
|
];
|
||||||
|
|
||||||
# Workaround build failure on -fno-common toolchains like upstream
|
# Workaround build failure on -fno-common toolchains like upstream
|
||||||
# gcc-10. Otherwise build fails as:
|
# gcc-10. Otherwise build fails as:
|
||||||
@ -67,10 +73,10 @@ stdenv.mkDerivation rec {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Range of synthesiser, electric piano and organ emulations";
|
description = "Range of synthesiser, electric piano and organ emulations";
|
||||||
homepage = "https://bristol.sourceforge.net";
|
homepage = "https://bristol.sourceforge.net";
|
||||||
license = licenses.gpl3;
|
license = lib.licenses.gpl3;
|
||||||
platforms = [
|
platforms = [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
"i686-linux"
|
"i686-linux"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user