diff --git a/pkgs/development/ocaml-modules/tsdl-mixer/default.nix b/pkgs/development/ocaml-modules/tsdl-mixer/default.nix new file mode 100644 index 00000000000..4a59025f9d8 --- /dev/null +++ b/pkgs/development/ocaml-modules/tsdl-mixer/default.nix @@ -0,0 +1,37 @@ +{ buildDunePackage +, dune-configurator +, fetchFromGitHub +, lib +, SDL2 +, SDL2_mixer +, tsdl +}: + +buildDunePackage rec { + pname = "tsdl-mixer"; + version = "0.3.2"; + + src = fetchFromGitHub { + owner = "sanette"; + repo = pname; + rev = version; + sha256 = "sha256-UDRhwnanrn87/PYVnacur1z/LsKuUu2G+0QQXjTw/IE="; + }; + + buildInputs = [ + dune-configurator + ]; + + propagatedBuildInputs = [ + SDL2 + SDL2_mixer + tsdl + ]; + + meta = with lib; { + description = "SDL2_mixer bindings to go with Tsdl"; + homepage = "https://github.com/sanette/tsdl-mixer"; + license = licenses.bsd3; + maintainers = with maintainers; [ superherointj ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 2535d0f9246..3119d138dfd 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1369,6 +1369,8 @@ let tsdl-image = callPackage ../development/ocaml-modules/tsdl-image { }; + tsdl-mixer = callPackage ../development/ocaml-modules/tsdl-mixer { }; + tsdl-ttf = callPackage ../development/ocaml-modules/tsdl-ttf { }; twt = callPackage ../development/ocaml-modules/twt { };