ocamlPackages.gd4o: init at 1.0a5 (#169226)

This commit is contained in:
Daniel Løvbrøtte Olsen 2022-05-22 10:09:35 +02:00 committed by GitHub
parent 5e56998566
commit 9c4c9f5884
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,36 @@
{ lib, stdenv, fetchurl, ocaml, gd, freetype, findlib, zlib, libpng, libjpeg }:
stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-gd4o";
version = "1.0a5";
src = fetchurl {
url = "mirror://sourceforge/gd4o/gd4o/1.0%20Alpha%205/gd4o-1.0a5.tar.gz";
sha256 = "1vbyakz7byvxmqf3hj68rw15b4kb94ppcnhvmjv38rsyg05bc47s";
};
buildInputs = [ ocaml findlib libjpeg libpng ];
propagatedBuildInputs = [ gd zlib freetype ];
preInstall = ''
mkdir -p $OCAMLFIND_DESTDIR/stublibs
'';
buildFlags = [ "all" "opt" ];
checkPhase = ''
runHook preCheck
make test.opt
runHook postCheck
'';
doCheck = true;
meta = with lib; {
homepage = "https://sourceforge.net/projects/gd4o/";
description = "OCaml wrapper for the GD graphics library";
license = licenses.lgpl21Only;
maintainers = with maintainers; [ dandellion ];
};
}

View file

@ -450,6 +450,8 @@ let
functory = callPackage ../development/ocaml-modules/functory { };
gd4o = callPackage ../development/ocaml-modules/gd4o { };
gen = callPackage ../development/ocaml-modules/gen { };
genspio = callPackage ../development/ocaml-modules/genspio { };