mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 06:27:43 +00:00
ocamlPackages.lwt_ppx: switch to fetchFromGitHub
This commit is contained in:
parent
92864e8e8b
commit
a6bd34cb79
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user