nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 48 lines 953 B view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 expat, 6 ocaml, 7 findlib, 8 ounit, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "ocaml${ocaml.version}-expat"; 13 version = "1.3.0"; 14 15 src = fetchFromGitHub { 16 owner = "whitequark"; 17 repo = "ocaml-expat"; 18 rev = "v${version}"; 19 hash = "sha256-eDA6MUcztaI+fpunWBdanNnPo9Y5gvbj/ViVcxYYEBg="; 20 }; 21 22 prePatch = '' 23 substituteInPlace Makefile --replace "gcc" "\$(CC)" 24 ''; 25 26 nativeBuildInputs = [ 27 ocaml 28 findlib 29 ]; 30 buildInputs = [ expat ]; 31 32 strictDeps = true; 33 34 doCheck = lib.versionAtLeast ocaml.version "4.08"; 35 checkTarget = "testall"; 36 checkInputs = [ ounit ]; 37 38 createFindlibDestdir = true; 39 40 meta = { 41 description = "OCaml wrapper for the Expat XML parsing library"; 42 license = lib.licenses.mit; 43 maintainers = [ lib.maintainers.vbgl ]; 44 inherit (src.meta) homepage; 45 inherit (ocaml.meta) platforms; 46 broken = !(lib.versionAtLeast ocaml.version "4.02"); 47 }; 48}