darkice: Fix build with opus and vorbis support

The configure script requires libogg in both the paths of libopus and
libvorbis. Because is isn't true for the libopus and libvorbis
derivations in NixOS and patching the configure script is a bit tedious,
a temporary environment with libogg, libvorbis & libopus is used.

+11 -5
+11 -5
pkgs/tools/audio/darkice/default.nix
··· 1 - { stdenv, fetchurl, alsaLib, faac, libjack2, lame, libopus, libpulseaudio, libsamplerate, libvorbis }: 2 3 - with stdenv.lib; 4 5 - stdenv.mkDerivation rec { 6 name = "darkice-${version}"; 7 version = "1.2"; 8 ··· 16 "--with-faac-prefix=${faac}" 17 "--with-jack-prefix=${libjack2}" 18 "--with-lame-prefix=${lame}" 19 - "--with-opus-prefix=${libopus}" 20 "--with-pulseaudio-prefix=${libpulseaudio}" 21 "--with-samplerate-prefix=${libsamplerate}" 22 - "--with-vorbis-prefix=${libvorbis}" 23 # "--with-aacplus-prefix=${aacplus}" ### missing: aacplus 24 # "--with-twolame-prefix=${twolame}" ### missing: twolame 25 ];
··· 1 + { stdenv, buildEnv, fetchurl, alsaLib, faac, libjack2, lame, libogg, libopus, libpulseaudio, libsamplerate, libvorbis }: 2 3 + let 4 + oggEnv = buildEnv { 5 + name = "env-darkice-ogg"; 6 + paths = [ 7 + libopus libvorbis libogg 8 + ]; 9 + }; 10 11 + in stdenv.mkDerivation rec { 12 name = "darkice-${version}"; 13 version = "1.2"; 14 ··· 22 "--with-faac-prefix=${faac}" 23 "--with-jack-prefix=${libjack2}" 24 "--with-lame-prefix=${lame}" 25 + "--with-opus-prefix=${oggEnv}" 26 "--with-pulseaudio-prefix=${libpulseaudio}" 27 "--with-samplerate-prefix=${libsamplerate}" 28 + "--with-vorbis-prefix=${oggEnv}" 29 # "--with-aacplus-prefix=${aacplus}" ### missing: aacplus 30 # "--with-twolame-prefix=${twolame}" ### missing: twolame 31 ];