2013-12-05 16:20:32 +01:00
|
|
|
{stdenv, fetchurl, ocaml, pkgconfig, findlib, SDL, SDL_image, SDL_mixer, SDL_ttf, SDL_gfx, lablgl }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "ocamlsdl";
|
|
|
|
in
|
|
|
|
|
2018-08-29 14:44:12 +02:00
|
|
|
if stdenv.lib.versionAtLeast ocaml.version "4.06"
|
|
|
|
then throw "${pname} is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
2016-10-05 09:32:30 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2013-12-05 16:20:32 +01:00
|
|
|
name = "${pname}-${version}";
|
2016-10-05 09:32:30 +02:00
|
|
|
version = "0.9.1";
|
2013-12-05 16:20:32 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-02-28 13:07:42 +01:00
|
|
|
url = "mirror://sourceforge/project/ocamlsdl/OCamlSDL/ocamlsdl-0.9.1/ocamlsdl-0.9.1.tar.gz";
|
2013-12-05 16:20:32 +01:00
|
|
|
sha256 = "abfb295b263dc11e97fffdd88ea1a28b46df8cc2b196777093e4fe7f509e4f8f";
|
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ocaml findlib SDL SDL_image SDL_mixer SDL_ttf SDL_gfx lablgl];
|
2013-12-05 16:20:32 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ SDL SDL_image SDL_mixer SDL_ttf SDL_gfx pkgconfig ];
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://ocamlsdl.sourceforge.net/";
|
2013-12-05 16:20:32 +01:00
|
|
|
description = "OCaml bindings for SDL 1.2";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
2013-12-05 16:20:32 +01:00
|
|
|
};
|
|
|
|
}
|