aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/gmetadom
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/gmetadom
parent916364af72f15e7635387889d883b605948b1f1d (diff)
treewide: use ocaml.version (#19192)
Diffstat (limited to 'pkgs/development/ocaml-modules/gmetadom')
-rw-r--r--pkgs/development/ocaml-modules/gmetadom/default.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/development/ocaml-modules/gmetadom/default.nix b/pkgs/development/ocaml-modules/gmetadom/default.nix
index f0a9387a537e..0f1facd65186 100644
--- a/pkgs/development/ocaml-modules/gmetadom/default.nix
+++ b/pkgs/development/ocaml-modules/gmetadom/default.nix
@@ -1,14 +1,12 @@
{stdenv, fetchurl, ocaml, findlib, gdome2, libxslt, pkgconfig}:
let
- ocaml_version = (builtins.parseDrvName ocaml.name).version;
- version = "0.2.6";
pname = "gmetadom";
-
in
-stdenv.mkDerivation {
+stdenv.mkDerivation rec {
name = "${pname}-${version}";
+ version = "0.2.6";
src = fetchurl {
url = "mirror://sourceforge/project/${pname}/${pname}/${version}/${pname}-${version}.tar.gz";
@@ -20,7 +18,7 @@ stdenv.mkDerivation {
dontDisableStatic = true;
preConfigure=''
- configureFlags="--with-ocaml-lib-prefix=$out/lib/ocaml/${ocaml_version}/site-lib"
+ configureFlags="--with-ocaml-lib-prefix=$out/lib/ocaml/${ocaml.version}/site-lib"
'';