timidity: fix instruments also adding jack and default alsa backend
svn path=/nixpkgs/trunk/; revision=17029
This commit is contained in:
parent
3201717bdb
commit
b441632f92
@ -1,6 +1,7 @@
|
||||
args: with args;
|
||||
let inherit (args.composableDerivation) composableDerivation edf; in
|
||||
composableDerivation {} {
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "timidity-2.13.0";
|
||||
|
||||
src = fetchurl {
|
||||
@ -8,21 +9,55 @@ stdenv.mkDerivation {
|
||||
sha256 = "1jbmk0m375fh5nj2awqzns7pdjbi7dxpjdwcix04zipfcilppbmf";
|
||||
};
|
||||
|
||||
buildInputs = [];
|
||||
|
||||
mergeAttrBy.audioModes = a : b : "${a},${b}";
|
||||
|
||||
preConfigure = ''
|
||||
configureFlags="$configureFlags --enable-audio=$audioModes"
|
||||
'';
|
||||
|
||||
# configure still has many more options...
|
||||
flags = {
|
||||
oss = {
|
||||
audioModes = "oss";
|
||||
};
|
||||
alsa = {
|
||||
audioModes = "alsa";
|
||||
buildInputs = [alsaLib];
|
||||
# this is better than /dev/dsp !
|
||||
configureFlags = ["--with-default-output-mode=alsa"];
|
||||
};
|
||||
jack = {
|
||||
audioModes = "jack";
|
||||
buildInputs = [jackaudio];
|
||||
NIX_LDFLAGS = ["-ljack -L${jackaudio}/lib64"];
|
||||
};
|
||||
} // edf { name = "ncurses"; enable = { buildInputs = [ncurses]; };};
|
||||
|
||||
cfg = {
|
||||
ncursesSupport = true;
|
||||
|
||||
ossSupport = true;
|
||||
alsaSupport = true;
|
||||
jackSupport = true;
|
||||
};
|
||||
|
||||
instruments = fetchurl {
|
||||
url = http://www.csee.umbc.edu/pub/midia/instruments.tar.gz;
|
||||
sha256 = "0lsh9l8l5h46z0y8ybsjd4pf6c22n33jsjvapfv3rjlfnasnqw67";
|
||||
};
|
||||
|
||||
buildInputs = [alsaLib];
|
||||
|
||||
# the instruments could be compressed (?)
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/timidity/;
|
||||
cp ${./timidity.cfg} $out/share/timidity/timidity.cfg
|
||||
tar -xf $instruments -C $out/share/timidity/
|
||||
tar --strip-components=1 -xf $instruments -C $out/share/timidity/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A software MIDI renderer";
|
||||
maintainers = [args.lib.maintainers.marcweber];
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -7268,7 +7268,7 @@ let
|
||||
});*/
|
||||
|
||||
timidity = import ../tools/misc/timidity {
|
||||
inherit fetchurl stdenv alsaLib;
|
||||
inherit fetchurl stdenv lib alsaLib composableDerivation jackaudio ncurses;
|
||||
};
|
||||
|
||||
tkcvs = import ../applications/version-management/tkcvs {
|
||||
|
Loading…
x
Reference in New Issue
Block a user