about summary refs log tree commit diff
path: root/pkgs/development/libraries/SDL_mixer/default.nix
blob: 024fd643be6fac99c6d36a73e505f894bbab3c8d (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
args: with args;
stdenv.mkDerivation (rec {
  pname = "SDL_mixer";
  version = "1.2.8";

  name = "${pname}-${version}";

  src = fetchurl {
    url = "http://www.libsdl.org/projects/${pname}/release/${name}.tar.gz";
    sha256 = "a8222a274778ff16d0e3ee49a30db27a48a4d357169a915fc599a764e405e0b6";
  };

  buildInputs = [SDL libogg libvorbis];

  configureFlags = "--disable-music-ogg-shared";

  postInstall = "ln -s \${out}/include/SDL/SDL_mixer.h \${out}/include/";

  meta = {
    description = "
      SDL multi-channel audio mixer library.
";
  };
})