about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/pycaml/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/pycaml/default.nix
parent7a7550f2141658428eaebbeb2684e6a7619172a1 (diff)
pkgs/development: rename name to pname&version
Diffstat (limited to 'pkgs/development/ocaml-modules/pycaml/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/pycaml/default.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/development/ocaml-modules/pycaml/default.nix b/pkgs/development/ocaml-modules/pycaml/default.nix
index 1aa2590f2ae5f..a67809eb75c2b 100644
--- a/pkgs/development/ocaml-modules/pycaml/default.nix
+++ b/pkgs/development/ocaml-modules/pycaml/default.nix
@@ -1,18 +1,19 @@
-{stdenv, fetchurl, ocaml, findlib, ncurses, python, ocaml_make}:
+{lib, stdenv, fetchurl, ocaml, findlib, ncurses, python, ocaml_make}:
 
 # This is the original pycaml version with patches from debian.
 
-stdenv.mkDerivation {
-  name = "pycaml-0.82-14";
+stdenv.mkDerivation rec {
+  pname = "pycaml";
+  version = "0.82-14";
 
   srcs = [
     (fetchurl {
-      url = "mirror://debian/pool/main/p/pycaml/pycaml_0.82.orig.tar.gz";
+      url = "mirror://debian/pool/main/p/pycaml/pycaml_${lib.versions.majorMinor version}.orig.tar.gz";
       sha256 = "d57be559c8d586c575717d47817986bbdbcebe2ffd16ad6b291525c62868babe";
     })
 
     (fetchurl {
-      url = "mirror://debian/pool/main/p/pycaml/pycaml_0.82-14.debian.tar.gz";
+      url = "mirror://debian/pool/main/p/pycaml/pycaml_${version}.debian.tar.gz";
       sha256 = "a763088ec1fa76c769bf586ed6692e7ac035b0a2bfd48a90a8e7a9539ec0c2f1";
     })
   ];