about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/lwt
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2022-01-07 17:14:48 +0100
committerFelix Buehler <account@buehler.rocks>2022-01-08 15:38:10 +0100
commita6bd34cb799454cd44fcdd8cfa9e7371fd1a0ad6 (patch)
treed339cacf488e57c362968c7dc08910a2c4873e47 /pkgs/development/ocaml-modules/lwt
parent92864e8e8b2d5427773a58b3849c30d4074c9cd6 (diff)
ocamlPackages.lwt_ppx: switch to fetchFromGitHub
Diffstat (limited to 'pkgs/development/ocaml-modules/lwt')
-rw-r--r--pkgs/development/ocaml-modules/lwt/ppx.nix24
1 files changed, 13 insertions, 11 deletions
diff --git a/pkgs/development/ocaml-modules/lwt/ppx.nix b/pkgs/development/ocaml-modules/lwt/ppx.nix
index 2df17844d1a06..1ba21af864bb1 100644
--- a/pkgs/development/ocaml-modules/lwt/ppx.nix
+++ b/pkgs/development/ocaml-modules/lwt/ppx.nix
@@ -1,4 +1,4 @@
-{ fetchzip, buildDunePackage, lwt, ppxlib }:
+{ fetchFromGitHub, buildDunePackage, lwt, ppxlib }:
 
 buildDunePackage {
   pname = "lwt_ppx";
@@ -8,16 +8,18 @@ buildDunePackage {
 
   minimumOCamlVersion = "4.04";
 
-  src = fetchzip {
-    # `lwt_ppx` has a different release cycle than Lwt, but it's included in
-    # one of its release bundles.
-    # Because there could exist an Lwt release _without_ a `lwt_ppx` release,
-    # this `src` field doesn't inherit from the Lwt derivation.
-    #
-    # This is particularly useful for overriding Lwt without breaking `lwt_ppx`,
-    # as new Lwt releases may contain broken `lwt_ppx` code.
-    url = "https://github.com/ocsigen/lwt/archive/5.4.0.tar.gz";
-    sha256 = "1ay1zgadnw19r9hl2awfjr22n37l7rzxd9v73pjbahavwm2ay65d";
+  # `lwt_ppx` has a different release cycle than Lwt, but it's included in
+  # one of its release bundles.
+  # Because there could exist an Lwt release _without_ a `lwt_ppx` release,
+  # this `src` field doesn't inherit from the Lwt derivation.
+  #
+  # This is particularly useful for overriding Lwt without breaking `lwt_ppx`,
+  # as new Lwt releases may contain broken `lwt_ppx` code.
+  src = fetchFromGitHub {
+    owner = "ocsigen";
+    repo = "lwt";
+    rev = "5.4.0";
+    sha256 = "sha256-rRivROVbQbXkHWen1n8+9AwrRJaOK0Fhyilw29T7was=";
   };
 
   propagatedBuildInputs = [ lwt ppxlib ];