forked from mirrors/nixpkgs
ocamlPackages.rope: 0.5 -> 0.6
This commit is contained in:
parent
7c749ba705
commit
c890abba57
|
@ -1,18 +1,34 @@
|
||||||
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, benchmark }:
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, jbuilder, benchmark }:
|
||||||
|
|
||||||
let version = "0.5"; in
|
let param =
|
||||||
|
if stdenv.lib.versionAtLeast ocaml.version "4.03"
|
||||||
|
then {
|
||||||
|
version = "0.6";
|
||||||
|
url = " https://github.com/Chris00/ocaml-rope/releases/download/0.6/rope-0.6.tbz";
|
||||||
|
sha256 = "06pkbnkad2ck50jn59ggwv154yd9vb01abblihvam6p27m4za1pc";
|
||||||
|
buildInputs = [ jbuilder ];
|
||||||
|
extra = {
|
||||||
|
unpackCmd = "tar -xjf $curSrc";
|
||||||
|
buildPhase = "jbuilder build -p rope";
|
||||||
|
inherit (jbuilder) installPhase;
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
version = "0.5";
|
||||||
|
url = "https://forge.ocamlcore.org/frs/download.php/1156/rope-0.5.tar.gz";
|
||||||
|
sha256 = "05fr2f5ch2rqhyaj06rv5218sbg99p1m9pq5sklk04hpslxig21f";
|
||||||
|
buildInputs = [ ocamlbuild ];
|
||||||
|
extra = { createFindlibDestdir = true; };
|
||||||
|
};
|
||||||
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation ({
|
||||||
name = "ocaml${ocaml.version}-rope-${version}";
|
name = "ocaml${ocaml.version}-rope-${param.version}";
|
||||||
|
|
||||||
src = fetchzip {
|
src = fetchurl {
|
||||||
url = "https://forge.ocamlcore.org/frs/download.php/1156/rope-${version}.tar.gz";
|
inherit (param) url sha256;
|
||||||
sha256 = "1i8kzg19jrapl30mq8m91vy09z0r0dl4bnpw24ga96w8pxqf9qhd";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ocamlbuild benchmark ];
|
buildInputs = [ ocaml findlib benchmark ] ++ param.buildInputs;
|
||||||
|
|
||||||
createFindlibDestdir = true;
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://rope.forge.ocamlcore.org/;
|
homepage = http://rope.forge.ocamlcore.org/;
|
||||||
|
@ -21,4 +37,4 @@ stdenv.mkDerivation {
|
||||||
license = stdenv.lib.licenses.lgpl21;
|
license = stdenv.lib.licenses.lgpl21;
|
||||||
maintainers = with stdenv.lib.maintainers; [ volth ];
|
maintainers = with stdenv.lib.maintainers; [ volth ];
|
||||||
};
|
};
|
||||||
}
|
} // param.extra)
|
||||||
|
|
Loading…
Reference in a new issue