forked from mirrors/nixpkgs
ocamlPackages.xmlm: remove at 1.2.0
This commit is contained in:
parent
a4fa4c45cc
commit
2e851f9651
|
@ -4,38 +4,24 @@ let
|
||||||
webpage = "http://erratique.ch/software/${pname}";
|
webpage = "http://erratique.ch/software/${pname}";
|
||||||
in
|
in
|
||||||
|
|
||||||
assert stdenv.lib.versionAtLeast ocaml.version "3.12";
|
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
|
||||||
|
then throw "xmlm is not available for OCaml ${ocaml.version}"
|
||||||
let param =
|
else
|
||||||
if stdenv.lib.versionAtLeast ocaml.version "4.02"
|
|
||||||
then {
|
|
||||||
version = "1.3.0";
|
|
||||||
sha256 = "1rrdxg5kh9zaqmgapy9bhdqyxbbvxxib3bdfg1vhw4rrkp1z0x8n";
|
|
||||||
buildInputs = [ topkg ];
|
|
||||||
inherit (topkg) buildPhase;
|
|
||||||
} else {
|
|
||||||
version = "1.2.0";
|
|
||||||
sha256 = "1jywcrwn5z3gkgvicr004cxmdaqfmq8wh72f81jqz56iyn5024nh";
|
|
||||||
buildInputs = [];
|
|
||||||
buildPhase = "./pkg/build true";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "ocaml-${pname}-${version}";
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
||||||
inherit (param) version;
|
version = "1.3.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "${webpage}/releases/${pname}-${version}.tbz";
|
url = "${webpage}/releases/${pname}-${version}.tbz";
|
||||||
inherit (param) sha256;
|
sha256 = "1rrdxg5kh9zaqmgapy9bhdqyxbbvxxib3bdfg1vhw4rrkp1z0x8n";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ocamlbuild ] ++ param.buildInputs;
|
buildInputs = [ ocaml findlib ocamlbuild topkg ];
|
||||||
|
|
||||||
unpackCmd = "tar xjf $src";
|
unpackCmd = "tar xjf $src";
|
||||||
|
|
||||||
inherit (param) buildPhase;
|
inherit (topkg) buildPhase installPhase;
|
||||||
inherit (topkg) installPhase;
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "An OCaml streaming codec to decode and encode the XML data format";
|
description = "An OCaml streaming codec to decode and encode the XML data format";
|
||||||
|
|
Loading…
Reference in a new issue