about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/SDL_mixer
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/SDL_mixer')
-rw-r--r--nixpkgs/pkgs/development/libraries/SDL_mixer/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/SDL_mixer/default.nix b/nixpkgs/pkgs/development/libraries/SDL_mixer/default.nix
new file mode 100644
index 000000000000..291e9790e442
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/SDL_mixer/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, lib, fetchurl
+, SDL, libogg, libvorbis, smpeg, libmikmod
+, fluidsynth
+, enableNativeMidi ? false
+}:
+
+stdenv.mkDerivation rec {
+  pname   = "SDL_mixer";
+  version = "1.2.12";
+
+  src = fetchurl {
+    url    = "http://www.libsdl.org/projects/${pname}/release/${pname}-${version}.tar.gz";
+    sha256 = "0alrhqgm40p4c92s26mimg9cm1y7rzr6m0p49687jxd9g6130i0n";
+  };
+
+  buildInputs = [ SDL libogg libvorbis fluidsynth smpeg libmikmod ];
+
+  configureFlags = [ "--disable-music-ogg-shared" "--disable-music-mod-shared" ]
+    ++ lib.optional enableNativeMidi " --enable-music-native-midi-gpl"
+    ++ lib.optionals stdenv.isDarwin [ "--disable-sdltest" "--disable-smpegtest" ];
+
+  meta = with lib; {
+    description = "SDL multi-channel audio mixer library";
+    homepage    = "http://www.libsdl.org/projects/SDL_mixer/";
+    maintainers = with maintainers; [ lovek323 ];
+    platforms   = platforms.unix;
+    license     = licenses.zlib;
+  };
+}