ocamlPackages.xmlm: 1.2.0 -> 1.3.0
This commit is contained in:
parent
58906f359f
commit
aa3535cee5
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam }:
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg }:
|
||||||
let
|
let
|
||||||
pname = "xmlm";
|
pname = "xmlm";
|
||||||
webpage = "http://erratique.ch/software/${pname}";
|
webpage = "http://erratique.ch/software/${pname}";
|
||||||
@ -6,22 +6,37 @@ in
|
|||||||
|
|
||||||
assert stdenv.lib.versionAtLeast ocaml.version "3.12";
|
assert stdenv.lib.versionAtLeast ocaml.version "3.12";
|
||||||
|
|
||||||
|
let param =
|
||||||
|
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-${pname}-${version}";
|
||||||
version = "1.2.0";
|
inherit (param) version;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "${webpage}/releases/${pname}-${version}.tbz";
|
url = "${webpage}/releases/${pname}-${version}.tbz";
|
||||||
sha256 = "1jywcrwn5z3gkgvicr004cxmdaqfmq8wh72f81jqz56iyn5024nh";
|
inherit (param) sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ocamlbuild opam ];
|
buildInputs = [ ocaml findlib ocamlbuild opam ] ++ param.buildInputs;
|
||||||
|
|
||||||
createFindlibDestdir = true;
|
createFindlibDestdir = true;
|
||||||
|
|
||||||
unpackCmd = "tar xjf $src";
|
unpackCmd = "tar xjf $src";
|
||||||
|
|
||||||
buildPhase = "./pkg/build true";
|
inherit (param) buildPhase;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
opam-installer --script --prefix=$out ${pname}.install > install.sh
|
opam-installer --script --prefix=$out ${pname}.install > install.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user