summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/uutf
diff options
context:
space:
mode:
authorKirill Boltaev <aske@fmap.me>2016-10-05 11:32:30 +0400
committervbgl <vbgl@users.noreply.github.com>2016-10-05 09:32:30 +0200
commit3e646865f4eb5216117dc49f3c9fb4a02ad2313b (patch)
tree9418314db159ba326550bf4af9df1e7aa9a75332 /pkgs/development/ocaml-modules/uutf
parent916364af72f15e7635387889d883b605948b1f1d (diff)
downloadnixlib-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/uutf')
-rw-r--r--pkgs/development/ocaml-modules/uutf/default.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/development/ocaml-modules/uutf/default.nix b/pkgs/development/ocaml-modules/uutf/default.nix
index 7c4cff571280..897630ccac6f 100644
--- a/pkgs/development/ocaml-modules/uutf/default.nix
+++ b/pkgs/development/ocaml-modules/uutf/default.nix
@@ -1,16 +1,14 @@
 {stdenv, fetchurl, ocaml, findlib, opam}:
 let
   pname = "uutf";
-  version = "0.9.3";
   webpage = "http://erratique.ch/software/${pname}";
-  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 rec {
-
   name = "ocaml-${pname}-${version}";
+  version = "0.9.3";
 
   src = fetchurl {
     url = "${webpage}/releases/${pname}-${version}.tbz";
@@ -28,7 +26,7 @@ stdenv.mkDerivation rec {
   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; {