diff options
author | Felix Buehler <account@buehler.rocks> | 2021-11-09 20:42:54 +0100 |
---|---|---|
committer | Felix Buehler <account@buehler.rocks> | 2021-11-10 14:03:21 +0100 |
commit | 345d71ffd0a4f1693cb5d1e74b49fe5c34405705 (patch) | |
tree | 8d0b5efaca0bb793655edeb3914fa93c32e13bfc /pkgs/development/ocaml-modules/type_conv | |
parent | 7a7550f2141658428eaebbeb2684e6a7619172a1 (diff) | |
download | nixpkgs-345d71ffd0a4f1693cb5d1e74b49fe5c34405705.tar nixpkgs-345d71ffd0a4f1693cb5d1e74b49fe5c34405705.tar.gz nixpkgs-345d71ffd0a4f1693cb5d1e74b49fe5c34405705.tar.bz2 nixpkgs-345d71ffd0a4f1693cb5d1e74b49fe5c34405705.tar.lz nixpkgs-345d71ffd0a4f1693cb5d1e74b49fe5c34405705.tar.xz nixpkgs-345d71ffd0a4f1693cb5d1e74b49fe5c34405705.tar.zst nixpkgs-345d71ffd0a4f1693cb5d1e74b49fe5c34405705.zip |
pkgs/development: rename name to pname&version
Diffstat (limited to 'pkgs/development/ocaml-modules/type_conv')
-rw-r--r-- | pkgs/development/ocaml-modules/type_conv/108.08.00.nix | 7 | ||||
-rw-r--r-- | pkgs/development/ocaml-modules/type_conv/109.60.01.nix | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/development/ocaml-modules/type_conv/108.08.00.nix b/pkgs/development/ocaml-modules/type_conv/108.08.00.nix index 72e4fcbb35f..e0c852a9baa 100644 --- a/pkgs/development/ocaml-modules/type_conv/108.08.00.nix +++ b/pkgs/development/ocaml-modules/type_conv/108.08.00.nix @@ -4,11 +4,12 @@ if !lib.versionAtLeast ocaml.version "3.12" || lib.versionAtLeast ocaml.version "4.03" then throw "type_conv-108.08.00 is not available for OCaml ${ocaml.version}" else -stdenv.mkDerivation { - name = "ocaml-type_conv-108.08.00"; +stdenv.mkDerivation rec { + pname = "ocaml-type_conv"; + version = "108.08.00"; src = fetchurl { - url = "https://ocaml.janestreet.com/ocaml-core/108.08.00/individual/type_conv-108.08.00.tar.gz"; + url = "https://ocaml.janestreet.com/ocaml-core/${version}/individual/type_conv-${version}.tar.gz"; sha256 = "08ysikwwp69zvc147lzzg79nwlrzrk738rj0ggcfadi8h5il42sl"; }; diff --git a/pkgs/development/ocaml-modules/type_conv/109.60.01.nix b/pkgs/development/ocaml-modules/type_conv/109.60.01.nix index e41e9b188fc..4da9fc569a2 100644 --- a/pkgs/development/ocaml-modules/type_conv/109.60.01.nix +++ b/pkgs/development/ocaml-modules/type_conv/109.60.01.nix @@ -4,11 +4,12 @@ if !lib.versionAtLeast ocaml.version "4.00" || lib.versionAtLeast ocaml.version "4.03" then throw "type_conv-109.60.01 is not available for OCaml ${ocaml.version}" else -stdenv.mkDerivation { - name = "ocaml-type_conv-109.60.01"; +stdenv.mkDerivation rec { + pname = "ocaml-type_conv"; + version = "109.60.01"; src = fetchurl { - url = "https://github.com/janestreet/type_conv/archive/109.60.01.tar.gz"; + url = "https://github.com/janestreet/type_conv/archive/${version}.tar.gz"; sha256 = "0lpxri68glgq1z2pp02rp45cb909xywbff8d4idljrf6fzzil2zx"; }; |