mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 06:05:13 +00:00
4e42cac49d
This change was produced by searching for remaining occurrences of stdenv.lib and replacing them manually. Reference #108938.
33 lines
783 B
Nix
33 lines
783 B
Nix
{ stdenv, lib, fetchFromGitHub, expat, ocaml, findlib, ounit }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ocaml${ocaml.version}-expat-${version}";
|
|
version = "1.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "whitequark";
|
|
repo = "ocaml-expat";
|
|
rev = "v${version}";
|
|
sha256 = "07wm9663z744ya6z2lhiz5hbmc76kkipg04j9vw9dqpd1y1f2x3q";
|
|
};
|
|
|
|
prePatch = ''
|
|
substituteInPlace Makefile --replace "gcc" "\$(CC)"
|
|
'';
|
|
|
|
buildInputs = [ ocaml findlib expat ounit ];
|
|
|
|
doCheck = !lib.versionAtLeast ocaml.version "4.06";
|
|
checkTarget = "testall";
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
meta = {
|
|
description = "OCaml wrapper for the Expat XML parsing library";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
inherit (src.meta) homepage;
|
|
inherit (ocaml.meta) platforms;
|
|
};
|
|
}
|