summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/camomile
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/camomile
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/camomile')
-rw-r--r--pkgs/development/ocaml-modules/camomile/0.8.2.nix8
-rw-r--r--pkgs/development/ocaml-modules/camomile/default.nix9
2 files changed, 5 insertions, 12 deletions
diff --git a/pkgs/development/ocaml-modules/camomile/0.8.2.nix b/pkgs/development/ocaml-modules/camomile/0.8.2.nix
index 9f7201708afd..63daf21e4080 100644
--- a/pkgs/development/ocaml-modules/camomile/0.8.2.nix
+++ b/pkgs/development/ocaml-modules/camomile/0.8.2.nix
@@ -1,12 +1,8 @@
 {stdenv, fetchurl, ocaml, findlib, camlp4}:
 
-let
-  ocaml_version = (builtins.parseDrvName ocaml.name).version;
-  version = "0.8.2";
-in
-
-stdenv.mkDerivation {
+stdenv.mkDerivation rec {
   name = "camomile-${version}";
+  version = "0.8.2";
 
   src = fetchurl {
     url = "mirror://sourceforge/camomile/camomile-${version}.tar.bz2";
diff --git a/pkgs/development/ocaml-modules/camomile/default.nix b/pkgs/development/ocaml-modules/camomile/default.nix
index 11a7828f1e41..950d7f7fc8f2 100644
--- a/pkgs/development/ocaml-modules/camomile/default.nix
+++ b/pkgs/development/ocaml-modules/camomile/default.nix
@@ -1,11 +1,8 @@
 {stdenv, fetchurl, ocaml, findlib, camlp4}:
 
-let
-  ocaml_version = (builtins.parseDrvName ocaml.name).version;
-in
-
-stdenv.mkDerivation {
-  name = "camomile-0.8.5";
+stdenv.mkDerivation rec {
+  name = "camomile-${version}";
+  version = "0.8.5";
 
   src = fetchurl {
     url = https://github.com/yoriyuki/Camomile/releases/download/rel-0.8.5/camomile-0.8.5.tar.bz2;