diff options
author | Kirill Boltaev <aske@fmap.me> | 2016-10-05 11:32:30 +0400 |
---|---|---|
committer | vbgl <vbgl@users.noreply.github.com> | 2016-10-05 09:32:30 +0200 |
commit | 3e646865f4eb5216117dc49f3c9fb4a02ad2313b (patch) | |
tree | 9418314db159ba326550bf4af9df1e7aa9a75332 /pkgs/development/ocaml-modules/lwt/default.nix | |
parent | 916364af72f15e7635387889d883b605948b1f1d (diff) | |
download | nixlib-3e646865f4eb5216117dc49f3c9fb4a02ad2313b.tar nixlib-3e646865f4eb5216117dc49f3c9fb4a02ad2313b.tar.gz nixlib-3e646865f4eb5216117dc49f3c9fb4a02ad2313b.tar.bz2 nixlib-3e646865f4eb5216117dc49f3c9fb4a02ad2313b.tar.lz nixlib-3e646865f4eb5216117dc49f3c9fb4a02ad2313b.tar.xz nixlib-3e646865f4eb5216117dc49f3c9fb4a02ad2313b.tar.zst nixlib-3e646865f4eb5216117dc49f3c9fb4a02ad2313b.zip |
treewide: use ocaml.version (#19192)
Diffstat (limited to 'pkgs/development/ocaml-modules/lwt/default.nix')
-rw-r--r-- | pkgs/development/ocaml-modules/lwt/default.nix | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/pkgs/development/ocaml-modules/lwt/default.nix b/pkgs/development/ocaml-modules/lwt/default.nix index 6c0d772650cf..4c99ff2b6859 100644 --- a/pkgs/development/ocaml-modules/lwt/default.nix +++ b/pkgs/development/ocaml-modules/lwt/default.nix @@ -1,15 +1,12 @@ { stdenv, fetchzip, which, cryptopp, ocaml, findlib, ocaml_react, ocaml_ssl, libev, pkgconfig, ncurses, ocaml_oasis, ocaml_text, glib, camlp4, ppx_tools }: let - version = "2.5.2"; inherit (stdenv.lib) optional getVersion versionAtLeast; - ocaml_version = getVersion ocaml; in -stdenv.mkDerivation { - - +stdenv.mkDerivation rec { name = "ocaml-lwt-${version}"; + version = "2.5.2"; src = fetchzip { url = "https://github.com/ocsigen/lwt/archive/${version}.tar.gz"; @@ -21,7 +18,7 @@ stdenv.mkDerivation { propagatedBuildInputs = [ ocaml_react ocaml_ssl ocaml_text libev ]; configureFlags = [ "--enable-glib" "--enable-ssl" "--enable-react" "--enable-camlp4"] - ++ [ (if versionAtLeast ocaml_version "4.02" then "--enable-ppx" else "--disable-ppx") ]; + ++ [ (if versionAtLeast ocaml.version "4.02" then "--enable-ppx" else "--disable-ppx") ]; createFindlibDestdir = true; |