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/cmdliner | |
parent | 916364af72f15e7635387889d883b605948b1f1d (diff) |
treewide: use ocaml.version (#19192)
Diffstat (limited to 'pkgs/development/ocaml-modules/cmdliner')
-rw-r--r-- | pkgs/development/ocaml-modules/cmdliner/default.nix | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/development/ocaml-modules/cmdliner/default.nix b/pkgs/development/ocaml-modules/cmdliner/default.nix index 80992bdfe7c..d72ff6d93d4 100644 --- a/pkgs/development/ocaml-modules/cmdliner/default.nix +++ b/pkgs/development/ocaml-modules/cmdliner/default.nix @@ -2,15 +2,14 @@ let pname = "cmdliner"; - version = "0.9.8"; - ocaml_version = (builtins.parseDrvName ocaml.name).version; in -assert stdenv.lib.versionAtLeast ocaml_version "3.12"; +assert stdenv.lib.versionAtLeast ocaml.version "3.12"; -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "ocaml-${pname}-${version}"; + version = "0.9.8"; src = fetchurl { url = "http://erratique.ch/software/${pname}/releases/${pname}-${version}.tbz"; @@ -27,7 +26,7 @@ stdenv.mkDerivation { installPhase = '' opam-installer --script --prefix=$out ${pname}.install > install.sh sh install.sh - ln -s $out/lib/${pname} $out/lib/ocaml/${ocaml_version}/site-lib/ + ln -s $out/lib/${pname} $out/lib/ocaml/${ocaml.version}/site-lib/ ''; meta = with stdenv.lib; { |