diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2018-08-17 13:44:40 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2018-08-17 13:45:21 +0200 |
commit | cbabebcc2e3b884296fedf8591e04f59240b3939 (patch) | |
tree | 54f637fbb59548753ac613ec3e4f56aae97a5e6e /pkgs/development/ocaml-modules | |
parent | 7a22083e1271869294a074cbe7a971f2d8abb4f4 (diff) | |
parent | 93147d737d24f55d8da7257e24d840c9f9b1fe6c (diff) | |
download | nixlib-cbabebcc2e3b884296fedf8591e04f59240b3939.tar nixlib-cbabebcc2e3b884296fedf8591e04f59240b3939.tar.gz nixlib-cbabebcc2e3b884296fedf8591e04f59240b3939.tar.bz2 nixlib-cbabebcc2e3b884296fedf8591e04f59240b3939.tar.lz nixlib-cbabebcc2e3b884296fedf8591e04f59240b3939.tar.xz nixlib-cbabebcc2e3b884296fedf8591e04f59240b3939.tar.zst nixlib-cbabebcc2e3b884296fedf8591e04f59240b3939.zip |
Merge branch 'master' into staging-next
Hydra: ?compare=1473892
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/atd/default.nix | 38 | ||||
-rw-r--r-- | pkgs/development/ocaml-modules/atdgen/default.nix | 25 | ||||
-rw-r--r-- | pkgs/development/ocaml-modules/extlib/default.nix | 6 | ||||
-rw-r--r-- | pkgs/development/ocaml-modules/janestreet/default.nix | 13 | ||||
-rw-r--r-- | pkgs/development/ocaml-modules/javalib/default.nix | 12 |
5 files changed, 31 insertions, 63 deletions
diff --git a/pkgs/development/ocaml-modules/atd/default.nix b/pkgs/development/ocaml-modules/atd/default.nix index af52bd9aaafa..52a1fc36921c 100644 --- a/pkgs/development/ocaml-modules/atd/default.nix +++ b/pkgs/development/ocaml-modules/atd/default.nix @@ -1,41 +1,29 @@ -{ stdenv, menhir, easy-format, ocaml, findlib, fetchurl, jbuilder, which }: - -let param = - if stdenv.lib.versionAtLeast ocaml.version "4.02" - then { - version = "1.12.0"; - sha256 = "1pcd4fqbilv8zm2mc1nj2s26vc5y8vnisg1q1y6bjx23wxidb09y"; - buildPhase = "jbuilder build -p atd"; - inherit (jbuilder) installPhase; - } else { - version = "1.1.2"; - sha256 = "0ef10c63192aed75e9a4274e89c5f9ca27efb1ef230d9949eda53ad4a9a37291"; - buildPhase = ""; - installPhase = '' - mkdir -p $out/bin - make PREFIX=$out install - ''; - }; -in +{ stdenv, menhir, easy-format, ocaml, findlib, fetchFromGitHub, jbuilder, which, biniou, yojson }: stdenv.mkDerivation rec { - inherit (param) version buildPhase installPhase; + version = "2.0.0"; + name = "ocaml${ocaml.version}-atd-${version}"; - src = fetchurl { - url = "https://github.com/mjambon/atd/archive/v${version}.tar.gz"; - inherit (param) sha256; + src = fetchFromGitHub { + owner = "mjambon"; + repo = "atd"; + rev = version; + sha256 = "0alzmk97rxg7s6irs9lvf89dy9n3r769my5n4j9p9qyigcdgjaia"; }; createFindlibDestdir = true; buildInputs = [ which jbuilder ocaml findlib menhir ]; - propagatedBuildInputs = [ easy-format ]; + propagatedBuildInputs = [ easy-format biniou yojson ]; + + buildPhase = "jbuilder build"; + inherit (jbuilder) installPhase; meta = with stdenv.lib; { homepage = https://github.com/mjambon/atd; description = "Syntax for cross-language type definitions"; license = licenses.bsd3; - maintainers = [ maintainers.jwilberding ]; + maintainers = with maintainers; [ aij jwilberding ]; }; } diff --git a/pkgs/development/ocaml-modules/atdgen/default.nix b/pkgs/development/ocaml-modules/atdgen/default.nix deleted file mode 100644 index 291dd03c8d11..000000000000 --- a/pkgs/development/ocaml-modules/atdgen/default.nix +++ /dev/null @@ -1,25 +0,0 @@ -{stdenv, atd, yojson, biniou, buildOcaml, fetchurl, which}: - -buildOcaml rec { - name = "atdgen"; - version = "1.6.0"; - - src = fetchurl { - url = "https://github.com/mjambon/atdgen/archive/v${version}.tar.gz"; - sha256 = "1icdxgb7qqq1pcbfqi0ikryiwaljd594z3acyci8g3bnlq0yc7zn"; - }; - - installPhase = '' - mkdir -p $out/bin - make PREFIX=$out install - ''; - - buildInputs = [ which atd biniou yojson ]; - - meta = with stdenv.lib; { - homepage = https://github.com/mjambon/atdgen; - description = "Generates optimized boilerplate OCaml code for JSON and Biniou IO from type definitions"; - license = licenses.bsd3; - maintainers = [ maintainers.jwilberding ]; - }; -} diff --git a/pkgs/development/ocaml-modules/extlib/default.nix b/pkgs/development/ocaml-modules/extlib/default.nix index e1c56bf7ebe5..de759e922781 100644 --- a/pkgs/development/ocaml-modules/extlib/default.nix +++ b/pkgs/development/ocaml-modules/extlib/default.nix @@ -3,11 +3,11 @@ assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.11"; stdenv.mkDerivation { - name = "ocaml-extlib-1.7.4"; + name = "ocaml${ocaml.version}-extlib-1.7.5"; src = fetchurl { - url = http://ygrek.org.ua/p/release/ocaml-extlib/extlib-1.7.4.tar.gz; - sha256 = "18jb4rvkk6p3mqnkamwb41x8q49shgn43h020bs4cp4vac7nrhnr"; + url = http://ygrek.org.ua/p/release/ocaml-extlib/extlib-1.7.5.tar.gz; + sha256 = "19slqf5bdj0rrph2w41giwmn6df2qm07942jn058pjkjrnk30d4s"; }; buildInputs = [ ocaml findlib cppo ]; diff --git a/pkgs/development/ocaml-modules/janestreet/default.nix b/pkgs/development/ocaml-modules/janestreet/default.nix index f8ce400e864e..040a4ca618b0 100644 --- a/pkgs/development/ocaml-modules/janestreet/default.nix +++ b/pkgs/development/ocaml-modules/janestreet/default.nix @@ -299,9 +299,9 @@ rec { }; core = janePackage { - version = "0.11.1"; + version = "0.11.2"; name = "core"; - hash = "0wa2dsfk5m5wlhz915664y9h08idijj5s41hyg8n54dhihvxw2ci"; + hash = "0vpsvd75lxb09il2rnzyib9mlr51v1hzqdc9fdxgx353pb5agh8a"; propagatedBuildInputs = [ core_kernel spawn ]; meta.description = "Jane Street's standard library overlay"; }; @@ -341,8 +341,9 @@ rec { }; async_kernel = janePackage { + version = "0.11.1"; name = "async_kernel"; - hash = "1drxawih7vhhb1mhd291698ly7yb38qzif82jk1adqcvwdb547af"; + hash = "1ssv0gqbdns6by1wdjrrs35cj1c1n1qcfkxs8hj04b7x89wzvf1q"; propagatedBuildInputs = [ core_kernel ]; meta.description = "Jane Street Capital's asynchronous execution library (core)"; }; @@ -369,8 +370,9 @@ rec { }; async_extra = janePackage { + version = "0.11.1"; name = "async_extra"; - hash = "1qac95zlvq34fh2wbwbw0vdzxnba6si8lkal7n09y2lzpwvsifx3"; + hash = "0dmplvqf41820rm5i0l9bx1xmmdlq8zsszi36y2rkjna8991f7s2"; propagatedBuildInputs = [ async_rpc_kernel async_unix ]; meta.description = "Jane Street's asynchronous execution library (extra)"; }; @@ -548,8 +550,9 @@ rec { }; incremental_kernel = janePackage { + version = "0.11.1"; name = "incremental_kernel"; - hash = "02arw8blpmnzlw5jlvavyvpgh3s9q0j9mhi2byz0x8cxknqvvasg"; + hash = "1qp9dqncx2h0np0rndqaic4dna8f1dlkqnbjfcdhcim5dp2vg4x6"; propagatedBuildInputs = [ core_kernel ]; meta.description = "Library for incremental computations depending only on core_kernel"; }; diff --git a/pkgs/development/ocaml-modules/javalib/default.nix b/pkgs/development/ocaml-modules/javalib/default.nix index e0dc2408f133..6e533092dc64 100644 --- a/pkgs/development/ocaml-modules/javalib/default.nix +++ b/pkgs/development/ocaml-modules/javalib/default.nix @@ -1,4 +1,6 @@ -{stdenv, fetchurl, which, ocaml, findlib, camlzip, extlib, camlp4}: +{ stdenv, fetchurl, which, ocaml, findlib, camlp4 +, camlzip, camomile, extlib +}: if !stdenv.lib.versionAtLeast ocaml.version "4" then throw "javalib not supported for ocaml ${ocaml.version}" @@ -10,11 +12,11 @@ let in stdenv.mkDerivation rec { name = "ocaml${ocaml.version}-${pname}-${version}"; - version = "2.3.4"; + version = "2.3.5"; src = fetchurl { - url = "https://gforge.inria.fr/frs/download.php/file/37154/javalib-2.3.4.tar.bz2"; - sha256 = "1ajzbyli5a3y9s8f46913drpxdzlby3i4g3c2fqacmnbyvhpaqb6"; + url = "https://gforge.inria.fr/frs/download.php/file/37655/javalib-2.3.5.tar.bz2"; + sha256 = "1gks12ghcmv9lm8j4diw8bvjqxfl7xwk0sxbi227saxg9irpwwkd"; }; buildInputs = [ which ocaml findlib camlp4 ]; @@ -34,7 +36,7 @@ stdenv.mkDerivation rec { export OCAMLPATH=$out/lib/ocaml/${ocaml.version}/site-lib/:$OCAMLPATH; ''; - propagatedBuildInputs = [ camlzip extlib ]; + propagatedBuildInputs = [ camlzip camomile extlib ]; meta = with stdenv.lib; { description = "A library that parses Java .class files into OCaml data structures"; |