nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 44 lines 897 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 ocaml, 6 findlib, 7 ocamlbuild, 8 topkg, 9}: 10let 11 pname = "xmlm"; 12 webpage = "https://erratique.ch/software/${pname}"; 13in 14stdenv.mkDerivation rec { 15 name = "ocaml${ocaml.version}-${pname}-${version}"; 16 version = "1.4.0"; 17 18 src = fetchurl { 19 url = "${webpage}/releases/${pname}-${version}.tbz"; 20 sha256 = "sha256-CRJSJY490WMgw85N2yG81X79nIwuv7eZ7mpUPtSS2fo="; 21 }; 22 23 nativeBuildInputs = [ 24 ocaml 25 findlib 26 ocamlbuild 27 topkg 28 ]; 29 buildInputs = [ topkg ]; 30 31 strictDeps = true; 32 33 inherit (topkg) buildPhase installPhase; 34 35 meta = { 36 description = "OCaml streaming codec to decode and encode the XML data format"; 37 homepage = webpage; 38 license = lib.licenses.isc; 39 maintainers = [ lib.maintainers.vbgl ]; 40 mainProgram = "xmltrip"; 41 inherit (ocaml.meta) platforms; 42 broken = lib.versionOlder ocaml.version "4.05"; 43 }; 44}