2014-06-15 10:39:25 +01:00
|
|
|
{ stdenv, fetchurl, cmake
|
|
|
|
, alsaSupport ? true, alsaLib ? null
|
|
|
|
, pulseSupport ? true, pulseaudio ? null
|
|
|
|
}:
|
2010-07-28 12:55:54 +01:00
|
|
|
|
2015-02-20 23:43:40 +00:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2014-06-15 10:39:25 +01:00
|
|
|
assert alsaSupport -> alsaLib != null;
|
|
|
|
assert pulseSupport -> pulseaudio != null;
|
2007-12-01 05:56:58 +00:00
|
|
|
|
2014-06-15 10:39:25 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-02-20 23:43:40 +00:00
|
|
|
version = "1.16.0";
|
2013-04-01 16:52:57 +01:00
|
|
|
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 16:52:57 +01:00
|
|
|
url = "http://kcat.strangesoft.net/openal-releases/${name}.tar.bz2";
|
2015-02-20 23:43:40 +00:00
|
|
|
sha256 = "0pqdykdclycfnk66v166srjrry936y39d1dz9wl92qz27wqwsg9g";
|
2007-12-01 05:56:58 +00:00
|
|
|
};
|
|
|
|
|
2014-06-15 10:39:25 +01:00
|
|
|
buildInputs = [ cmake ]
|
2015-02-20 23:43:40 +00:00
|
|
|
++ optional alsaSupport alsaLib
|
|
|
|
++ optional pulseSupport pulseaudio;
|
2014-06-15 10:39:25 +01:00
|
|
|
|
|
|
|
NIX_LDFLAGS = []
|
2015-02-20 23:43:40 +00:00
|
|
|
++ optional alsaSupport "-lasound"
|
|
|
|
++ optional pulseSupport "-lpulse";
|
2014-06-15 10:39:25 +01:00
|
|
|
|
2007-12-01 05:56:58 +00:00
|
|
|
meta = {
|
2010-07-28 12:55:54 +01:00
|
|
|
description = "OpenAL alternative";
|
|
|
|
homepage = http://kcat.strangesoft.net/openal.html;
|
2015-02-20 23:43:40 +00:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = with maintainers; [ftrvxmtrx];
|
2007-12-01 05:56:58 +00:00
|
|
|
};
|
|
|
|
}
|