From 6fd5756e496487882fa0370792f458834b2d080d Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sat, 30 Oct 2021 16:57:53 +0200 Subject: [PATCH] ocamlPackages.variantslib: switch to fetchFromGitHub --- pkgs/development/ocaml-modules/variantslib/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/variantslib/default.nix b/pkgs/development/ocaml-modules/variantslib/default.nix index f39336a84231..aaddda3c11bc 100644 --- a/pkgs/development/ocaml-modules/variantslib/default.nix +++ b/pkgs/development/ocaml-modules/variantslib/default.nix @@ -1,4 +1,4 @@ -{ lib, buildOcaml, ocaml, fetchurl, type_conv }: +{ lib, buildOcaml, ocaml, fetchFromGitHub, type_conv }: if lib.versionAtLeast ocaml.version "4.06" then throw "variantslib-109.15.03 is not available for OCaml ${ocaml.version}" @@ -10,9 +10,11 @@ buildOcaml rec { minimumSupportedOcamlVersion = "4.00"; - src = fetchurl { - url = "https://github.com/janestreet/variantslib/archive/${version}.tar.gz"; - sha256 = "a948dcdd4ca54786fe0646386b6e37a9db03bf276c6557ea374d82740bf18055"; + src = fetchFromGitHub { + owner = "janestreet"; + repo = "variantslib"; + rev = version; + sha256 = "sha256-pz3i3od2CqKSrm7uTQ2jdidFFwx7m7g1QuG4UdLk01k="; }; propagatedBuildInputs = [ type_conv ];