From d6d8195058f547cecdbecae16ed1cda7df4c4715 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sat, 30 Oct 2021 18:16:37 +0200 Subject: [PATCH] ocamlPackages.reactivedata: switch to fetchFromGitHub --- .../development/ocaml-modules/reactivedata/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/reactivedata/default.nix b/pkgs/development/ocaml-modules/reactivedata/default.nix index b2bbd13fc904..3a5ed7c71803 100644 --- a/pkgs/development/ocaml-modules/reactivedata/default.nix +++ b/pkgs/development/ocaml-modules/reactivedata/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, react, opaline }: +{ lib, stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, react, opaline }: if !lib.versionAtLeast ocaml.version "4.04" then throw "reactiveData is not available for OCaml ${ocaml.version}" @@ -8,9 +8,11 @@ stdenv.mkDerivation rec { pname = "ocaml${ocaml.version}-reactiveData"; version = "0.2.2"; - src = fetchurl { - url = "https://github.com/ocsigen/reactiveData/archive/${version}.tar.gz"; - sha256 = "0jzagyp4zla28wykvcgqwd8df71ir0vb4s8akp02cfacd5v86sng"; + src = fetchFromGitHub { + owner = "ocsigen"; + repo = "reactiveData"; + rev = version; + sha256 = "sha256-z2qDdmlMOSbAnQppsjbIMRzXUOP4sT09R0LRT65/6ks="; }; buildInputs = [ ocaml findlib ocamlbuild opaline ];