1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/ocaml-modules/ocamlsdl/default.nix

32 lines
927 B
Nix
Raw Normal View History

2013-12-05 15:20:32 +00:00
{stdenv, fetchurl, ocaml, pkgconfig, findlib, SDL, SDL_image, SDL_mixer, SDL_ttf, SDL_gfx, lablgl }:
let
pname = "ocamlsdl";
in
if stdenv.lib.versionAtLeast ocaml.version "4.06"
then throw "${pname} is not available for OCaml ${ocaml.version}"
else
2016-10-05 08:32:30 +01:00
stdenv.mkDerivation rec {
2013-12-05 15:20:32 +00:00
name = "${pname}-${version}";
2016-10-05 08:32:30 +01:00
version = "0.9.1";
2013-12-05 15:20:32 +00:00
src = fetchurl {
url = "mirror://sourceforge/project/ocamlsdl/OCamlSDL/ocamlsdl-0.9.1/ocamlsdl-0.9.1.tar.gz";
2013-12-05 15:20:32 +00:00
sha256 = "abfb295b263dc11e97fffdd88ea1a28b46df8cc2b196777093e4fe7f509e4f8f";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ocaml findlib SDL SDL_image SDL_mixer SDL_ttf SDL_gfx lablgl];
2013-12-05 15:20:32 +00:00
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 = stdenv.lib.licenses.lgpl21;
2013-12-05 15:20:32 +00:00
};
}