From 8746c8141f06b677edb4cccfd6fb7ad9a806c50a Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sat, 30 Oct 2021 16:58:06 +0200 Subject: [PATCH] ocamlPackages.typerep: switch to fetchFromGitHub --- pkgs/development/ocaml-modules/typerep/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/typerep/default.nix b/pkgs/development/ocaml-modules/typerep/default.nix index c851f22aa5b8..5a38bd708f7b 100644 --- a/pkgs/development/ocaml-modules/typerep/default.nix +++ b/pkgs/development/ocaml-modules/typerep/default.nix @@ -1,4 +1,4 @@ -{lib, buildOcaml, fetchurl, type_conv}: +{ lib, buildOcaml, fetchFromGitHub, type_conv }: buildOcaml rec { name = "typerep"; @@ -6,9 +6,11 @@ buildOcaml rec { minimumSupportedOcamlVersion = "4.00"; - src = fetchurl { - url = "https://github.com/janestreet/typerep/archive/${version}.tar.gz"; - sha256 = "4f1ab611a00aaf774e9774b26b687233e0c70d91f684415a876f094a9969eada"; + src = fetchFromGitHub { + owner = "janestreet"; + repo = "typerep"; + rev = version; + sha256 = "sha256-XCdUZp9Buwmo6qPYAoPD2P/gUgyWHTR7boyecBPKlho="; }; propagatedBuildInputs = [ type_conv ];