Merge pull request #271979 from vbgl/ocaml-gluten-0.5

ocamlPackages.gluten: 0.3.0 → 0.5.0
This commit is contained in:
Fabián Heredia Montiel 2023-12-05 00:27:27 +00:00 committed by GitHub
commit 3532bd963c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 9 deletions

View file

@ -3,25 +3,22 @@
, faraday , faraday
, fetchurl , fetchurl
, lib , lib
, ke
}: }:
buildDunePackage rec { buildDunePackage rec {
pname = "gluten"; pname = "gluten";
version = "0.3.0"; version = "0.5.0";
src = fetchurl { src = fetchurl {
url = "https://github.com/anmonteiro/gluten/releases/download/${version}/gluten-${version}.tbz"; url = "https://github.com/anmonteiro/gluten/releases/download/${version}/gluten-${version}.tbz";
hash = "sha256-9jctX3G/nQJTGJ7ClSBEiXwxeu0GcT9N+EmPfLuSFOU="; hash = "sha256-mGKbbQSPMOumUCtxrAdoBt5y2RrkAf58spkUymTYhYM=";
}; };
minimalOCamlVersion = "4.08"; minimalOCamlVersion = "4.08";
duneVersion = "3";
propagatedBuildInputs = [ propagatedBuildInputs = [
bigstringaf bigstringaf
faraday faraday
ke
]; ];
doCheck = false; # No tests doCheck = false; # No tests

View file

@ -0,0 +1,12 @@
{ lib, buildDunePackage, gluten, eio }:
buildDunePackage {
pname = "gluten-eio";
inherit (gluten) src version;
propagatedBuildInputs = [ gluten eio ];
meta = gluten.meta // {
description = "EIO runtime for gluten";
};
}

View file

@ -9,8 +9,6 @@ buildDunePackage rec {
pname = "gluten-lwt-unix"; pname = "gluten-lwt-unix";
inherit (gluten) doCheck meta src version; inherit (gluten) doCheck meta src version;
duneVersion = "3";
propagatedBuildInputs = [ propagatedBuildInputs = [
faraday-lwt-unix faraday-lwt-unix
gluten-lwt gluten-lwt

View file

@ -7,8 +7,6 @@ buildDunePackage rec {
pname = "gluten-lwt"; pname = "gluten-lwt";
inherit (gluten) doCheck meta src version; inherit (gluten) doCheck meta src version;
duneVersion = "3";
propagatedBuildInputs = [ propagatedBuildInputs = [
gluten gluten
lwt lwt

View file

@ -593,6 +593,7 @@ let
github-unix = callPackage ../development/ocaml-modules/github/unix.nix { }; github-unix = callPackage ../development/ocaml-modules/github/unix.nix { };
gluten = callPackage ../development/ocaml-modules/gluten { }; gluten = callPackage ../development/ocaml-modules/gluten { };
gluten-eio = callPackage ../development/ocaml-modules/gluten/eio.nix { };
gluten-lwt = callPackage ../development/ocaml-modules/gluten/lwt.nix { }; gluten-lwt = callPackage ../development/ocaml-modules/gluten/lwt.nix { };
gluten-lwt-unix = callPackage ../development/ocaml-modules/gluten/lwt-unix.nix { }; gluten-lwt-unix = callPackage ../development/ocaml-modules/gluten/lwt-unix.nix { };