Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 39 lines 938 B view raw
1{ lib, stdenv, fetchurl, ocaml, gd, freetype, findlib, zlib, libpng, libjpeg }: 2 3stdenv.mkDerivation rec { 4 pname = "ocaml${ocaml.version}-gd4o"; 5 version = "1.0a5"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/gd4o/gd4o/1.0%20Alpha%205/gd4o-1.0a5.tar.gz"; 9 sha256 = "1vbyakz7byvxmqf3hj68rw15b4kb94ppcnhvmjv38rsyg05bc47s"; 10 }; 11 12 buildInputs = [ ocaml findlib libjpeg libpng ]; 13 propagatedBuildInputs = [ gd zlib freetype ]; 14 15 makeFlags = [ 16 "CC=${stdenv.cc.targetPrefix}cc" 17 ]; 18 19 preInstall = '' 20 mkdir -p $OCAMLFIND_DESTDIR/stublibs 21 ''; 22 23 buildFlags = [ "all" "opt" ]; 24 25 checkPhase = '' 26 runHook preCheck 27 make test.opt 28 runHook postCheck 29 ''; 30 31 doCheck = true; 32 33 meta = with lib; { 34 homepage = "https://sourceforge.net/projects/gd4o/"; 35 description = "OCaml wrapper for the GD graphics library"; 36 license = licenses.lgpl21Only; 37 maintainers = with maintainers; [ dandellion ]; 38 }; 39}