lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

timidity: fix cross

+19 -1
+19 -1
pkgs/tools/misc/timidity/default.nix
··· 1 - { lib, stdenv, fetchurl, alsa-lib, libjack2, CoreAudio, ncurses, pkg-config }: 1 + { lib, stdenv, fetchurl 2 + , pkg-config, buildPackages 3 + , CoreAudio, alsa-lib, libjack2, ncurses 4 + }: 2 5 3 6 stdenv.mkDerivation rec { 4 7 pname = "timidity"; ··· 23 26 24 27 configureFlags = [ 25 28 "--enable-ncurses" 29 + "lib_cv_va_copy=yes" 30 + "lib_cv___va_copy=yes" 26 31 ] ++ lib.optionals stdenv.isLinux [ 27 32 "--enable-audio=oss,alsa,jack" 28 33 "--enable-alsaseq" 29 34 "--with-default-output=alsa" 35 + "lib_cv_va_val_copy=yes" 30 36 ] ++ lib.optionals stdenv.isDarwin [ 31 37 "--enable-audio=darwin,jack" 38 + "lib_cv_va_val_copy=no" 39 + ]; 40 + 41 + makeFlags = [ 42 + "AR=${stdenv.cc.targetPrefix}ar" 32 43 ]; 33 44 34 45 NIX_LDFLAGS = "-ljack -L${libjack2}/lib"; ··· 37 48 url = "http://www.csee.umbc.edu/pub/midia/instruments.tar.gz"; 38 49 sha256 = "0lsh9l8l5h46z0y8ybsjd4pf6c22n33jsjvapfv3rjlfnasnqw67"; 39 50 }; 51 + 52 + preBuild = '' 53 + # calcnewt has to be built with the host compiler. 54 + ${buildPackages.stdenv.cc}/bin/cc -o timidity/calcnewt -lm timidity/calcnewt.c 55 + # Remove dependencies of calcnewt so it doesn't try to remake it. 56 + sed -i 's/^\(calcnewt\$(EXEEXT):\).*/\1/g' timidity/Makefile 57 + ''; 40 58 41 59 # the instruments could be compressed (?) 42 60 postInstall = ''