Merge pull request #1333 from codename68/master
added OCaml package ocamlsdl
This commit is contained in:
commit
42d4c20710
2 changed files with 29 additions and 0 deletions
27
pkgs/development/ocaml-modules/ocamlsdl/default.nix
Normal file
27
pkgs/development/ocaml-modules/ocamlsdl/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{stdenv, fetchurl, ocaml, pkgconfig, findlib, SDL, SDL_image, SDL_mixer, SDL_ttf, SDL_gfx, lablgl }:
|
||||
|
||||
let
|
||||
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
||||
pname = "ocamlsdl";
|
||||
version = "0.9.1";
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://downloads.sourceforge.net/project/ocamlsdl/OCamlSDL/ocamlsdl-0.9.1/ocamlsdl-0.9.1.tar.gz";
|
||||
sha256 = "abfb295b263dc11e97fffdd88ea1a28b46df8cc2b196777093e4fe7f509e4f8f";
|
||||
};
|
||||
|
||||
buildInputs = [ocaml pkgconfig findlib SDL SDL_image SDL_mixer SDL_ttf SDL_gfx lablgl];
|
||||
|
||||
propagatedBuildInputs = [ SDL SDL_image SDL_mixer SDL_ttf SDL_gfx pkgconfig ];
|
||||
createFindlibDestdir = true;
|
||||
|
||||
meta = {
|
||||
homepage = http://ocamlsdl.sourceforge.net/;
|
||||
description = "OCaml bindings for SDL 1.2";
|
||||
license = "LGPL 2.1";
|
||||
};
|
||||
}
|
|
@ -2979,6 +2979,8 @@ let
|
|||
|
||||
ocaml_react = callPackage ../development/ocaml-modules/react { };
|
||||
|
||||
ocamlsdl= callPackage ../development/ocaml-modules/ocamlsdl { };
|
||||
|
||||
ocaml_sqlite3 = callPackage ../development/ocaml-modules/sqlite3 { };
|
||||
|
||||
ocaml_ssl = callPackage ../development/ocaml-modules/ssl { };
|
||||
|
|
Loading…
Reference in a new issue