mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 19:45:54 +00:00
531e4b80c9
Only acts on one-line dependency lists.
28 lines
805 B
Nix
28 lines
805 B
Nix
{stdenv, fetchurl, ocaml, pkgconfig, findlib, SDL, SDL_image, SDL_mixer, SDL_ttf, SDL_gfx, lablgl }:
|
|
|
|
let
|
|
pname = "ocamlsdl";
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "${pname}-${version}";
|
|
version = "0.9.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/project/ocamlsdl/OCamlSDL/ocamlsdl-0.9.1/ocamlsdl-0.9.1.tar.gz";
|
|
sha256 = "abfb295b263dc11e97fffdd88ea1a28b46df8cc2b196777093e4fe7f509e4f8f";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ocaml 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 = stdenv.lib.licenses.lgpl21;
|
|
};
|
|
}
|