ocamlPackages.ocamlnet: 4.1.{2,3} -> 4.1.4
This commit is contained in:
parent
0e5ff82954
commit
b744ee2d93
@ -1,23 +1,14 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, ncurses, ocaml, findlib, ocaml_pcre, camlzip
|
{ stdenv, fetchurl, pkgconfig, ncurses, ocaml, findlib, ocaml_pcre, camlzip
|
||||||
, gnutls, nettle }:
|
, gnutls, nettle }:
|
||||||
|
|
||||||
let param =
|
let version = "4.1.4"; in
|
||||||
if stdenv.lib.versionAtLeast ocaml.version "4.03"
|
|
||||||
then {
|
|
||||||
version = "4.1.3";
|
|
||||||
sha256 = "1ifm3izml9hnr7cic1413spnd8x8ka795awsm2xpam3cs8z3j0ca";
|
|
||||||
} else {
|
|
||||||
version = "4.1.2";
|
|
||||||
sha256 = "1n0l9zlq7dc5yr43bpa4a0b6bxj3iyjkadbb41g59zlwa8hkk34i";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "ocaml${ocaml.version}-ocamlnet-${param.version}";
|
name = "ocaml${ocaml.version}-ocamlnet-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://download.camlcity.org/download/ocamlnet-${param.version}.tar.gz";
|
url = "http://download.camlcity.org/download/ocamlnet-${version}.tar.gz";
|
||||||
inherit (param) sha256;
|
sha256 = "0hhi3s4xas5i3p7214qfji5pvr7d30d89vnmkznxsfqj4v7dmhs6";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ncurses ocaml findlib ocaml_pcre camlzip gnutls pkgconfig nettle ];
|
buildInputs = [ ncurses ocaml findlib ocaml_pcre camlzip gnutls pkgconfig nettle ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user