about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/tsdl-image/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules/tsdl-image/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/tsdl-image/default.nix37
1 files changed, 37 insertions, 0 deletions
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 0000000000000..a8a2e2d38d62f
--- /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 ];
+  };
+}