diff --git a/pkgs/development/ocaml-modules/tsdl-image/default.nix b/pkgs/development/ocaml-modules/tsdl-image/default.nix new file mode 100644 index 00000000000..a8a2e2d38d6 --- /dev/null +++ b/pkgs/development/ocaml-modules/tsdl-image/default.nix @@ -0,0 +1,37 @@ +{ buildDunePackage +, dune-configurator +, fetchFromGitHub +, lib +, SDL2 +, SDL2_image +, tsdl +}: + +buildDunePackage rec { + pname = "tsdl-image"; + version = "0.3.2"; + + src = fetchFromGitHub { + owner = "sanette"; + repo = pname; + rev = version; + sha256 = "sha256-u6VYAwq+2oLn2Kw1+KQRVPswAqeKDSAaPfGLPrzn30s="; + }; + + buildInputs = [ + dune-configurator + ]; + + propagatedBuildInputs = [ + SDL2 + SDL2_image + tsdl + ]; + + meta = with lib; { + description = "OCaml SDL2_image bindings to go with Tsdl"; + homepage = "https://github.com/sanette/tsdl-image"; + license = licenses.bsd3; + maintainers = with maintainers; [ superherointj ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 53ede51c4cc..70f235bfae8 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1367,6 +1367,8 @@ let tsdl = callPackage ../development/ocaml-modules/tsdl { }; + tsdl-image = callPackage ../development/ocaml-modules/tsdl-image { }; + twt = callPackage ../development/ocaml-modules/twt { }; uchar = callPackage ../development/ocaml-modules/uchar { };