diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2015-10-23 14:04:23 +0200 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2015-10-23 14:09:50 +0200 |
commit | ed13d23c97ee1b0a898e9418adfb40113393d1fb (patch) | |
tree | 7ef18b85a22d30915b23faf4145dfc3c45e83cc7 /pkgs/tools/audio/darkice | |
parent | 910479160b41fb266f840dc29ba78fa6dacb550a (diff) |
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.
Diffstat (limited to 'pkgs/tools/audio/darkice')
-rw-r--r-- | pkgs/tools/audio/darkice/default.nix | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/pkgs/tools/audio/darkice/default.nix b/pkgs/tools/audio/darkice/default.nix index edc8fe2dffc86..e4fc129ef601b 100644 --- a/pkgs/tools/audio/darkice/default.nix +++ b/pkgs/tools/audio/darkice/default.nix @@ -1,8 +1,14 @@ -{ stdenv, fetchurl, alsaLib, faac, libjack2, lame, libopus, libpulseaudio, libsamplerate, libvorbis }: +{ stdenv, buildEnv, fetchurl, alsaLib, faac, libjack2, lame, libogg, libopus, libpulseaudio, libsamplerate, libvorbis }: -with stdenv.lib; +let + oggEnv = buildEnv { + name = "env-darkice-ogg"; + paths = [ + libopus libvorbis libogg + ]; + }; -stdenv.mkDerivation rec { +in stdenv.mkDerivation rec { name = "darkice-${version}"; version = "1.2"; @@ -16,10 +22,10 @@ stdenv.mkDerivation rec { "--with-faac-prefix=${faac}" "--with-jack-prefix=${libjack2}" "--with-lame-prefix=${lame}" - "--with-opus-prefix=${libopus}" + "--with-opus-prefix=${oggEnv}" "--with-pulseaudio-prefix=${libpulseaudio}" "--with-samplerate-prefix=${libsamplerate}" - "--with-vorbis-prefix=${libvorbis}" + "--with-vorbis-prefix=${oggEnv}" # "--with-aacplus-prefix=${aacplus}" ### missing: aacplus # "--with-twolame-prefix=${twolame}" ### missing: twolame ]; |