Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
74 lines
1.7 KiB
Nix
74 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
removeReferencesTo,
|
|
alsaSupport ? stdenv.hostPlatform.isLinux,
|
|
alsa-lib,
|
|
dbusSupport ? !stdenv.hostPlatform.isDarwin,
|
|
dbus,
|
|
pipewireSupport ? !stdenv.hostPlatform.isDarwin,
|
|
pipewire,
|
|
pulseSupport ? !stdenv.hostPlatform.isDarwin,
|
|
libpulseaudio,
|
|
nix-update-script,
|
|
testers,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "openal-soft";
|
|
version = "1.24.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kcat";
|
|
repo = "openal-soft";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-VQa3FD9NyvDv/+VbU+5lmV0LteiioJHpRkr1lnCn1g4=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
removeReferencesTo
|
|
];
|
|
|
|
buildInputs =
|
|
lib.optional alsaSupport alsa-lib
|
|
++ lib.optional dbusSupport dbus
|
|
++ lib.optional pipewireSupport pipewire
|
|
++ lib.optional pulseSupport libpulseaudio;
|
|
|
|
cmakeFlags = [
|
|
# Automatically links dependencies without having to rely on dlopen, thus
|
|
# removes the need for NIX_LDFLAGS.
|
|
(lib.cmakeBool "ALSOFT_DLOPEN" false)
|
|
# allow oal-soft to find its own data files (e.g. HRTF profiles)
|
|
(lib.cmakeBool "ALSOFT_SEARCH_INSTALL_DATADIR" true)
|
|
];
|
|
|
|
passthru = {
|
|
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
|
|
updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version-regex"
|
|
"^(\\d+\\.\\d+\\.\\d+)$"
|
|
];
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "OpenAL alternative";
|
|
homepage = "https://openal-soft.org/";
|
|
changelog = "https://github.com/kcat/openal-soft/blob/master/ChangeLog";
|
|
license = lib.licenses.lgpl2;
|
|
pkgConfigModules = [ "openal" ];
|
|
maintainers = with lib.maintainers; [ ftrvxmtrx ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|