Files
nixpkgs/pkgs/by-name/sd/SDL2_sound/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

59 lines
1.2 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
cmake,
SDL2,
nix-update-script,
}:
# As of 2025-06-27 this library has no dependents in nixpkgs (https://github.com/NixOS/nixpkgs/pull/420339) and is
# considered for deletion.
stdenv.mkDerivation (finalAttrs: {
pname = "SDL2_sound";
version = "2.0.4";
src = fetchFromGitHub {
owner = "icculus";
repo = "SDL_sound";
rev = "v${finalAttrs.version}";
hash = "sha256-5t2ELm8d8IX+cIJqGl/8sffwXGj5Cm0kZI6+bmjvvPg=";
};
outputs = [
"out"
"lib"
"dev"
];
nativeBuildInputs = [ cmake ];
cmakeFlags = [
(lib.cmakeBool "SDLSOUND_DECODER_MIDI" true)
(lib.cmakeBool "SDLSOUND_BUILD_SHARED" (!stdenv.hostPlatform.isStatic))
(lib.cmakeBool "SDLSOUND_BUILD_STATIC" stdenv.hostPlatform.isStatic)
];
buildInputs = [ SDL2 ];
passthru.updateScript = nix-update-script { };
meta = {
description = "SDL2 sound library";
mainProgram = "playsound";
platforms = lib.platforms.all;
license = with lib.licenses; [
zlib
# various vendored decoders
publicDomain
# timidity
artistic1
lgpl21Only
];
teams = [ lib.teams.sdl ];
homepage = "https://www.icculus.org/SDL_sound/";
};
})