2014-06-15 09:39:25 +00:00
|
|
|
{ stdenv, fetchurl, cmake
|
|
|
|
, alsaSupport ? true, alsaLib ? null
|
|
|
|
, pulseSupport ? true, pulseaudio ? null
|
|
|
|
}:
|
2010-07-28 11:55:54 +00:00
|
|
|
|
2014-06-15 09:39:25 +00:00
|
|
|
assert alsaSupport -> alsaLib != null;
|
|
|
|
assert pulseSupport -> pulseaudio != null;
|
2007-12-01 05:56:58 +00:00
|
|
|
|
2014-06-15 09:39:25 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-04-01 15:52:57 +00:00
|
|
|
version = "1.15.1";
|
|
|
|
name = "openal-soft-${version}";
|
2007-12-01 05:56:58 +00:00
|
|
|
|
2008-01-28 19:35:40 +00:00
|
|
|
src = fetchurl {
|
2013-04-01 15:52:57 +00:00
|
|
|
url = "http://kcat.strangesoft.net/openal-releases/${name}.tar.bz2";
|
|
|
|
sha256 = "0mmhdqiyb3c9dzvxspm8h2v8jibhi8pfjxnf6m0wn744y1ia2a8f";
|
2007-12-01 05:56:58 +00:00
|
|
|
};
|
|
|
|
|
2014-06-15 09:39:25 +00:00
|
|
|
buildInputs = [ cmake ]
|
|
|
|
++ stdenv.lib.optional alsaSupport alsaLib
|
|
|
|
++ stdenv.lib.optional pulseSupport pulseaudio;
|
|
|
|
|
|
|
|
NIX_LDFLAGS = []
|
|
|
|
++ stdenv.lib.optional alsaSupport "-lasound"
|
|
|
|
++ stdenv.lib.optional pulseSupport "-lpulse";
|
|
|
|
|
2007-12-01 05:56:58 +00:00
|
|
|
meta = {
|
2010-07-28 11:55:54 +00:00
|
|
|
description = "OpenAL alternative";
|
|
|
|
homepage = http://kcat.strangesoft.net/openal.html;
|
|
|
|
license = "GPL2";
|
2007-12-01 05:56:58 +00:00
|
|
|
};
|
|
|
|
}
|