summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/nocrypto/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules/nocrypto/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/nocrypto/default.nix10
1 files changed, 3 insertions, 7 deletions
diff --git a/pkgs/development/ocaml-modules/nocrypto/default.nix b/pkgs/development/ocaml-modules/nocrypto/default.nix
index ed13a56955b6..f8db935b6122 100644
--- a/pkgs/development/ocaml-modules/nocrypto/default.nix
+++ b/pkgs/development/ocaml-modules/nocrypto/default.nix
@@ -1,14 +1,10 @@
 { stdenv, fetchzip, ocaml, findlib, cstruct, type_conv, zarith, ounit }:
 
-let
-  version = "0.5.1";
-  ocaml_version = stdenv.lib.getVersion ocaml;
-in
-
-assert stdenv.lib.versionAtLeast ocaml_version "4.01";
+assert stdenv.lib.versionAtLeast ocaml.version "4.01";
 
-stdenv.mkDerivation {
+stdenv.mkDerivation rec {
   name = "ocaml-nocrypto-${version}";
+  version = "0.5.1";
 
   src = fetchzip {
     url = "https://github.com/mirleft/ocaml-nocrypto/archive/${version}.tar.gz";