2018-10-22 05:38:49 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake
|
2016-02-29 18:47:12 +00:00
|
|
|
, alsaSupport ? !stdenv.isDarwin, alsaLib ? null
|
|
|
|
, pulseSupport ? !stdenv.isDarwin, libpulseaudio ? null
|
|
|
|
, CoreServices, AudioUnit, AudioToolbox
|
2014-06-15 09:39:25 +00:00
|
|
|
}:
|
2010-07-28 11:55:54 +00:00
|
|
|
|
2015-02-20 23:43:40 +00:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2014-06-15 09:39:25 +00:00
|
|
|
assert alsaSupport -> alsaLib != null;
|
2015-05-27 19:42:15 +00:00
|
|
|
assert pulseSupport -> libpulseaudio != null;
|
2007-12-01 05:56:58 +00:00
|
|
|
|
2014-06-15 09:39:25 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-10-22 05:38:49 +00:00
|
|
|
version = "1.19.1";
|
2013-04-01 15:52:57 +00:00
|
|
|
name = "openal-soft-${version}";
|
2007-12-01 05:56:58 +00:00
|
|
|
|
2018-10-22 05:38:49 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kcat";
|
|
|
|
repo = "openal-soft";
|
|
|
|
rev = name;
|
|
|
|
sha256 = "0b0g0q1c36nfb289xcaaj3cmyfpiswvvgky3qyalsf9n4dj7vnzi";
|
2007-12-01 05:56:58 +00:00
|
|
|
};
|
|
|
|
|
2017-05-01 22:19:00 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = []
|
2015-02-20 23:43:40 +00:00
|
|
|
++ optional alsaSupport alsaLib
|
2016-02-29 18:47:12 +00:00
|
|
|
++ optional pulseSupport libpulseaudio
|
2016-10-01 20:38:06 +00:00
|
|
|
++ optionals stdenv.isDarwin [ CoreServices AudioUnit AudioToolbox ];
|
2014-06-15 09:39:25 +00:00
|
|
|
|
|
|
|
NIX_LDFLAGS = []
|
2015-02-20 23:43:40 +00:00
|
|
|
++ optional alsaSupport "-lasound"
|
|
|
|
++ optional pulseSupport "-lpulse";
|
2014-06-15 09:39:25 +00:00
|
|
|
|
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;
|
2015-02-20 23:43:40 +00:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = with maintainers; [ftrvxmtrx];
|
2016-02-29 18:47:12 +00:00
|
|
|
platforms = platforms.unix;
|
2007-12-01 05:56:58 +00:00
|
|
|
};
|
|
|
|
}
|