From b87fcf0b64df333a9f6bd8c596e9f79601b907b8 Mon Sep 17 00:00:00 2001 From: SchweGELBin Date: Sat, 11 Oct 2025 20:58:59 +0200 Subject: [PATCH] wstsound: init at 0.3.0-unstable-2025-07-21 --- pkgs/by-name/ws/wstsound/package.nix | 64 ++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 pkgs/by-name/ws/wstsound/package.nix diff --git a/pkgs/by-name/ws/wstsound/package.nix b/pkgs/by-name/ws/wstsound/package.nix new file mode 100644 index 000000000000..2464faaf69ed --- /dev/null +++ b/pkgs/by-name/ws/wstsound/package.nix @@ -0,0 +1,64 @@ +{ + stdenv, + lib, + fetchFromGitHub, + cmake, + gtest, + tinycmmc, + libmodplug, + libogg, + libvorbis, + mpg123, + openal, + opusfile, + libopus, +}: + +stdenv.mkDerivation { + pname = "wstsound"; + version = "0.3.0-unstable-2025-07-21"; + + src = fetchFromGitHub { + owner = "WindstilleTeam"; + repo = "wstsound"; + rev = "2c7b00dc1af52432185dc28c4ae87c09c9f4f444"; + sha256 = "sha256-fus1ydypnDDHsQwMkYyZuRikZLbZXLlc/cY8Qol5Hwo="; + }; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ + gtest + tinycmmc + ]; + propagatedBuildInputs = [ + libmodplug + libogg + libvorbis + mpg123 + openal + opusfile + libopus + ]; + + cmakeFlags = [ + "-DWARNINGS=ON" + "-DWERROR=ON" + "-DBUILD_TESTS=ON" + "-DBUILD_EXTRA=ON" + ]; + + # Test "openal_info fails" + doCheck = false; + + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace-fail "COMMAND openal_info" "COMMAND openal-info" + ''; + + meta = { + description = "Windstille Sound Library"; + maintainers = [ lib.maintainers.SchweGELBin ]; + platforms = lib.platforms.linux; + license = lib.licenses.free; + }; +}