summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/magick/default.nix
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2021-11-09 20:42:54 +0100
committerFelix Buehler <account@buehler.rocks>2021-11-10 14:03:21 +0100
commit345d71ffd0a4f1693cb5d1e74b49fe5c34405705 (patch)
tree8d0b5efaca0bb793655edeb3914fa93c32e13bfc /pkgs/development/ocaml-modules/magick/default.nix
parent7a7550f2141658428eaebbeb2684e6a7619172a1 (diff)
pkgs/development: rename name to pname&version
Diffstat (limited to 'pkgs/development/ocaml-modules/magick/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/magick/default.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/development/ocaml-modules/magick/default.nix b/pkgs/development/ocaml-modules/magick/default.nix
index 016c059573b0c..f9fec120a6257 100644
--- a/pkgs/development/ocaml-modules/magick/default.nix
+++ b/pkgs/development/ocaml-modules/magick/default.nix
@@ -4,10 +4,12 @@ if lib.versionAtLeast ocaml.version "4.06"
 then throw "magick is not available for OCaml ${ocaml.version}"
 else
 
-stdenv.mkDerivation {
-  name = "ocaml-magick-0.34";
+stdenv.mkDerivation rec {
+  pname = "ocaml-magick";
+  version = "0.34";
+
   src = fetchurl {
-    url = "http://www.linux-nantes.org/~fmonnier/OCaml/ImageMagick/ImageMagick/OCaml-ImageMagick-0.34.tgz";
+    url = "http://www.linux-nantes.org/~fmonnier/OCaml/ImageMagick/ImageMagick/OCaml-ImageMagick-${version}.tgz";
     sha256 = "0gn9l2qdr8gby2x8c2mb59x1kipb2plr45rbq6ymcxyi0wmzfh3q";
   };