summary refs log tree commit diff
path: root/pkgs/development/tools/misc/trv
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/tools/misc/trv
parent916364af72f15e7635387889d883b605948b1f1d (diff)
downloadnixpkgs-3e646865f4eb5216117dc49f3c9fb4a02ad2313b.tar
nixpkgs-3e646865f4eb5216117dc49f3c9fb4a02ad2313b.tar.gz
nixpkgs-3e646865f4eb5216117dc49f3c9fb4a02ad2313b.tar.bz2
nixpkgs-3e646865f4eb5216117dc49f3c9fb4a02ad2313b.tar.lz
nixpkgs-3e646865f4eb5216117dc49f3c9fb4a02ad2313b.tar.xz
nixpkgs-3e646865f4eb5216117dc49f3c9fb4a02ad2313b.tar.zst
nixpkgs-3e646865f4eb5216117dc49f3c9fb4a02ad2313b.zip
treewide: use ocaml.version (#19192)
Diffstat (limited to 'pkgs/development/tools/misc/trv')
-rw-r--r--pkgs/development/tools/misc/trv/default.nix10
1 files changed, 3 insertions, 7 deletions
diff --git a/pkgs/development/tools/misc/trv/default.nix b/pkgs/development/tools/misc/trv/default.nix
index c14a41cc559..4b83c12bed7 100644
--- a/pkgs/development/tools/misc/trv/default.nix
+++ b/pkgs/development/tools/misc/trv/default.nix
@@ -2,15 +2,11 @@
 , re2_p4, async_extra_p4, sexplib_p4, async_shell, core_extended_p4, async_find
 , cohttp, uri, tzdata}:
 
-let
-  ocaml_version = (builtins.parseDrvName ocaml.name).version;
-  version = "0.1.3";
-in
-
-assert stdenv.lib.versionOlder "4.02" ocaml_version;
+assert stdenv.lib.versionOlder "4.02" ocaml.version;
 
-stdenv.mkDerivation {
+stdenv.mkDerivation rec {
   name = "trv-${version}";
+  version = "0.1.3";
 
   src = fetchFromGitHub {
     owner = "afiniate";