Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 55 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 pkg-config, 6 libjack2, 7 alsa-lib, 8 libpulseaudio, 9 faac, 10 lame, 11 libogg, 12 libopus, 13 libvorbis, 14 libsamplerate, 15}: 16 17stdenv.mkDerivation rec { 18 pname = "darkice"; 19 version = "1.5"; 20 21 src = fetchurl { 22 url = "https://github.com/rafael2k/darkice/releases/download/v${version}/darkice-${version}.tar.gz"; 23 sha256 = "sha256-GLTEVzp8z+CcEJTrV5gVniqYkhBupi11OTP28qdGBY4="; 24 }; 25 26 nativeBuildInputs = [ pkg-config ]; 27 buildInputs = [ 28 libopus 29 libvorbis 30 libogg 31 libpulseaudio 32 alsa-lib 33 libsamplerate 34 libjack2 35 lame 36 ]; 37 38 env.NIX_CFLAGS_COMPILE = "-fpermissive"; 39 40 configureFlags = [ 41 "--with-faac-prefix=${faac}" 42 "--with-lame-prefix=${lame.lib}" 43 ]; 44 45 patches = [ ./fix-undeclared-memmove.patch ]; 46 47 enableParallelBuilding = true; 48 49 meta = { 50 homepage = "http://darkice.org/"; 51 description = "Live audio streamer"; 52 license = lib.licenses.gpl3; 53 maintainers = with lib.maintainers; [ ikervagyok ]; 54 }; 55}