about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/lwt
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2021-10-30 19:25:29 +0200
committerFelix Buehler <account@buehler.rocks>2021-12-07 20:40:46 +0100
commitfd5bbfd0b7977fb9a6aaf2bacae6a69082a48de2 (patch)
tree5ccc28ab4d5f95d48bc26a7612322feb46b6cbd1 /pkgs/development/ocaml-modules/lwt
parent71dfb6b33a26c0c8f648945f24efd4770ff6c48c (diff)
ocamlPackages.lwt: switch to fetchFromGitHub
Diffstat (limited to 'pkgs/development/ocaml-modules/lwt')
-rw-r--r--pkgs/development/ocaml-modules/lwt/default.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/development/ocaml-modules/lwt/default.nix b/pkgs/development/ocaml-modules/lwt/default.nix
index be15d2b72a54c..76e973a813e47 100644
--- a/pkgs/development/ocaml-modules/lwt/default.nix
+++ b/pkgs/development/ocaml-modules/lwt/default.nix
@@ -1,4 +1,4 @@
-{ lib, fetchzip, pkg-config, ncurses, libev, buildDunePackage, ocaml
+{ lib, fetchFromGitHub, pkg-config, ncurses, libev, buildDunePackage, ocaml
 , cppo, dune-configurator, ocplib-endian, result
 , mmap, seq
 , ocaml-syntax-shims
@@ -12,9 +12,11 @@ buildDunePackage rec {
 
   useDune2 = true;
 
-  src = fetchzip {
-    url = "https://github.com/ocsigen/${pname}/archive/${version}.tar.gz";
-    sha256 = "0cq2qy23sa1a5zk6nja3c652mp29i84yfrkcwks6i8sdqwli36jy";
+  src = fetchFromGitHub {
+    owner = "ocsigen";
+    repo = "lwt";
+    rev = version;
+    sha256 = "sha256-XpoRKcdNo2j05Gxm5wmKSdwqimFDSWvmLyooPYTHAjM=";
   };
 
   nativeBuildInputs = [ pkg-config cppo dune-configurator ];