depot/third_party/nixpkgs/pkgs/by-name/sd/SDL_sound/package.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

48 lines
926 B
Nix

{
lib,
SDL,
fetchurl,
flac,
libmikmod,
libvorbis,
stdenv,
# Boolean flags
enableSdltest ? (!stdenv.hostPlatform.isDarwin)
}:
stdenv.mkDerivation (finalAttrs: {
pname = "SDL_sound";
version = "1.0.3";
src = fetchurl {
url = "https://icculus.org/SDL_sound/downloads/SDL_sound-${finalAttrs.version}.tar.gz";
hash = "sha256-OZn9C7tIUomlK+FLL2i1ccuE44DMQzh+rfd49kx55t8=";
};
nativeBuildInputs = [
SDL
];
buildInputs = [
SDL
flac
libmikmod
libvorbis
];
configureFlags = [
(lib.enableFeature enableSdltest "--disable-sdltest")
];
strictDeps = true;
meta = {
homepage = "https://www.icculus.org/SDL_sound/";
description = "SDL sound library";
license = lib.licenses.lgpl21Plus;
maintainers = lib.teams.sdl.members
++ (with lib.maintainers; [ ]);
mainProgram = "playsound";
inherit (SDL.meta) platforms;
};
})