summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/eliom
diff options
context:
space:
mode:
authorFlorent Becker <florent.becker@ens-lyon.org>2016-10-22 11:08:27 +0200
committerFlorent Becker <florent.becker@ens-lyon.org>2016-10-22 11:23:58 +0200
commitac69382453c61a17ec0669e449dac33d7e13c3a6 (patch)
treec5d2c70965c5c69ca3d3054408a8b0d1cc1222f7 /pkgs/development/ocaml-modules/eliom
parenta52c1b484017d57ec1a7a9bb3a7add8bcabc11a1 (diff)
downloadnixpkgs-ac69382453c61a17ec0669e449dac33d7e13c3a6.tar
nixpkgs-ac69382453c61a17ec0669e449dac33d7e13c3a6.tar.gz
nixpkgs-ac69382453c61a17ec0669e449dac33d7e13c3a6.tar.bz2
nixpkgs-ac69382453c61a17ec0669e449dac33d7e13c3a6.tar.lz
nixpkgs-ac69382453c61a17ec0669e449dac33d7e13c3a6.tar.xz
nixpkgs-ac69382453c61a17ec0669e449dac33d7e13c3a6.tar.zst
nixpkgs-ac69382453c61a17ec0669e449dac33d7e13c3a6.zip
eliom: modernize derivation
Diffstat (limited to 'pkgs/development/ocaml-modules/eliom')
-rw-r--r--pkgs/development/ocaml-modules/eliom/default.nix26
1 files changed, 9 insertions, 17 deletions
diff --git a/pkgs/development/ocaml-modules/eliom/default.nix b/pkgs/development/ocaml-modules/eliom/default.nix
index 219f104271d..293faad2301 100644
--- a/pkgs/development/ocaml-modules/eliom/default.nix
+++ b/pkgs/development/ocaml-modules/eliom/default.nix
@@ -1,15 +1,10 @@
-{ stdenv, fetchurl, ocaml, findlib, which, ocsigen_server, ocsigen_deriving,
+{ buildOcaml, stdenv, fetchurl, which, ocsigen_server, ocsigen_deriving, ocaml,
   js_of_ocaml, ocaml_react, ocaml_lwt, calendar, cryptokit, tyxml,
   ipaddr, ocamlnet, ocaml_ssl, ocaml_pcre, ocaml_optcomp,
-  reactivedata, opam, ppx_tools, camlp4}:
+  reactivedata, opam, ppx_tools, ppx_deriving, camlp4}:
 
-let ocamlVersion = (stdenv.lib.getVersion ocaml);
-  in
-
-(
-assert stdenv.lib.versionAtLeast ocamlVersion "4";
-
-stdenv.mkDerivation rec
+let ocamlVersion = (stdenv.lib.getVersion ocaml); in
+buildOcaml rec
 {
   pname = "eliom";
   version = "5.0.0";
@@ -22,12 +17,11 @@ stdenv.mkDerivation rec
 
   patches = [ ./camlp4.patch ];
 
-  buildInputs = [ocaml which ocsigen_server findlib ocsigen_deriving
-                 js_of_ocaml ocaml_optcomp opam ppx_tools camlp4 ];
+  buildInputs = [ which ocaml_optcomp opam ppx_tools camlp4 ];
 
-  propagatedBuildInputs = [ ocaml_lwt reactivedata tyxml ipaddr
-                            calendar cryptokit ocamlnet ocaml_react ocaml_ssl
-                            ocaml_pcre ];
+  propagatedBuildInputs = [ ocaml_lwt reactivedata tyxml ipaddr ocsigen_server ppx_deriving
+                            ocsigen_deriving js_of_ocaml
+                            calendar cryptokit ocamlnet ocaml_react ocaml_ssl ocaml_pcre ];
 
   preConfigure = stdenv.lib.optionalString (!stdenv.lib.versionAtLeast ocamlVersion "4.02") ''
       export PPX=false
@@ -57,8 +51,6 @@ stdenv.mkDerivation rec
 
     license = stdenv.lib.licenses.lgpl21;
 
-    platforms = ocaml.meta.platforms or [];
-
     maintainers = [ stdenv.lib.maintainers.gal_bolle ];
   };
-})
+}