about summary refs log tree commit diff
path: root/pkgs/by-name/sd/SDL_sound/package.nix
blob: b5e93b3efdf275181840b52701b7b8870edf8dd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
  lib,
  SDL,
  fetchurl,
  flac,
  libmikmod,
  libvorbis,
  stdenv,
  # Boolean flags
  enableSdltest ? (!stdenv.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;
  };
})