mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
35 lines
865 B
Nix
35 lines
865 B
Nix
{ stdenv, fetchurl, cmake
|
|
, alsaSupport ? true, alsaLib ? null
|
|
, pulseSupport ? true, libpulseaudio ? null
|
|
}:
|
|
|
|
with stdenv.lib;
|
|
|
|
assert alsaSupport -> alsaLib != null;
|
|
assert pulseSupport -> libpulseaudio != null;
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.16.0";
|
|
name = "openal-soft-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://kcat.strangesoft.net/openal-releases/${name}.tar.bz2";
|
|
sha256 = "0pqdykdclycfnk66v166srjrry936y39d1dz9wl92qz27wqwsg9g";
|
|
};
|
|
|
|
buildInputs = [ cmake ]
|
|
++ optional alsaSupport alsaLib
|
|
++ optional pulseSupport libpulseaudio;
|
|
|
|
NIX_LDFLAGS = []
|
|
++ optional alsaSupport "-lasound"
|
|
++ optional pulseSupport "-lpulse";
|
|
|
|
meta = {
|
|
description = "OpenAL alternative";
|
|
homepage = http://kcat.strangesoft.net/openal.html;
|
|
license = licenses.lgpl2;
|
|
maintainers = with maintainers; [ftrvxmtrx];
|
|
};
|
|
}
|