Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 51 lines 1.1 kB view raw
1{ lib, fetchurl, stdenv, ocaml, ocamlbuild, findlib, extlib, glib, perl, pkg-config, stdlib-shims, ounit }: 2 3stdenv.mkDerivation rec { 4 pname = "ocaml${ocaml.version}-cudf"; 5 version = "0.9"; 6 7 src = fetchurl { 8 url = "https://gforge.inria.fr/frs/download.php/36602/cudf-0.9.tar.gz"; 9 sha256 = "sha256-mTLk2V3OI1sUNIYv84nM3reiirf0AuozG5ZzLCmn4Rw="; 10 }; 11 12 buildFlags = [ 13 "all" 14 "opt" 15 ]; 16 17 nativeBuildInputs = [ 18 findlib 19 ocaml 20 ocamlbuild 21 pkg-config 22 perl 23 ]; 24 buildInputs = [ 25 glib 26 stdlib-shims 27 ]; 28 propagatedBuildInputs = [ 29 extlib 30 ]; 31 32 checkTarget = [ 33 "all" 34 "test" 35 ]; 36 checkInputs = [ 37 ounit 38 ]; 39 doCheck = lib.versionAtLeast ocaml.version "4.08"; 40 41 preInstall = "mkdir -p $OCAMLFIND_DESTDIR"; 42 installFlags = [ "BINDIR=$(out)/bin" ]; 43 44 meta = with lib; { 45 description = "A library for CUDF format"; 46 homepage = "https://www.mancoosi.org/cudf/"; 47 downloadPage = "https://gforge.inria.fr/projects/cudf/"; 48 license = licenses.lgpl3; 49 maintainers = with maintainers; [ ]; 50 }; 51}