From e31461c02c110bea33623f80802ed2909af54d9c Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 6 Jul 2026 07:30:51 +0200 Subject: [PATCH 1/3] ocamlPackages.fuse3: init at 3.10.0 --- .../ocaml-modules/fuse3/default.nix | 40 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 4 ++ 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/ocaml-modules/fuse3/default.nix diff --git a/pkgs/development/ocaml-modules/fuse3/default.nix b/pkgs/development/ocaml-modules/fuse3/default.nix new file mode 100644 index 000000000000..836ccb01cc1b --- /dev/null +++ b/pkgs/development/ocaml-modules/fuse3/default.nix @@ -0,0 +1,40 @@ +{ + lib, + fetchFromGitHub, + buildDunePackage, + camlidl, + dune-configurator, + pkg-config, + fuse3, +}: + +buildDunePackage (finalAttrs: { + pname = "fuse3"; + version = "3.10.0"; + + src = fetchFromGitHub { + owner = "astrada"; + repo = "ocamlfuse"; + tag = "v${finalAttrs.version}"; + hash = "sha256-xy3Jf4GTQP3vM6vRxBAeOIASWRuoNdlbt91eCco2zMg="; + }; + + nativeBuildInputs = [ + camlidl + pkg-config + ]; + + buildInputs = [ dune-configurator ]; + + propagatedBuildInputs = [ + camlidl + fuse3 + ]; + + meta = { + description = "OCaml bindings for libfuse 3"; + homepage = "https://github.com/astrada/ocamlfuse/"; + platforms = lib.platforms.linux; + license = lib.licenses.gpl2Plus; + }; +}) diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 974759c5491b..8b143f80b45c 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -710,6 +710,10 @@ let functory = callPackage ../development/ocaml-modules/functory { }; + fuse3 = callPackage ../development/ocaml-modules/fuse3 { + inherit (pkgs) fuse3; + }; + ### G ### gapi-ocaml = callPackage ../development/ocaml-modules/gapi-ocaml { }; From 64f4a892cf01d1f967c1ddc6e0f09e69a16ac55e Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 6 Jul 2026 07:38:33 +0200 Subject: [PATCH 2/3] =?UTF-8?q?ocamlPackages.gapi-ocaml:=200.4.8=20?= =?UTF-8?q?=E2=86=92=200.4.9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/gapi-ocaml/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/ocaml-modules/gapi-ocaml/default.nix b/pkgs/development/ocaml-modules/gapi-ocaml/default.nix index a6bec8a069cb..accd07f110af 100644 --- a/pkgs/development/ocaml-modules/gapi-ocaml/default.nix +++ b/pkgs/development/ocaml-modules/gapi-ocaml/default.nix @@ -12,7 +12,7 @@ buildDunePackage (finalAttrs: { pname = "gapi-ocaml"; - version = if lib.versionAtLeast cryptokit.version "1.21" then "0.4.8" else "0.4.7"; + version = if lib.versionAtLeast cryptokit.version "1.21" then "0.4.9" else "0.4.7"; src = fetchFromGitHub { owner = "astrada"; @@ -21,7 +21,7 @@ buildDunePackage (finalAttrs: { hash = { "0.4.7" = "sha256-uQJfrgF0oafURlamHslt9hX9MP4vFeVqDhuX7T/kjiY="; - "0.4.8" = "sha256-RvHcse3ech8BwnR0Kd1oE5ycAdSBpeQ0IGAp9egFbBY="; + "0.4.9" = "sha256-UWoWWpCAKCNEwEFO4UBXrTO49QyxLXrulDHX6dGr0z4="; } ."${finalAttrs.version}"; }; @@ -42,6 +42,7 @@ buildDunePackage (finalAttrs: { description = "OCaml client for google services"; homepage = "https://github.com/astrada/gapi-ocaml"; license = lib.licenses.mit; + platforms = lib.platforms.linux; maintainers = with lib.maintainers; [ bennofs ]; }; }) From ddf679831790e97ce14e01496c4af5eef8203511 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 6 Jul 2026 07:44:37 +0200 Subject: [PATCH 3/3] =?UTF-8?q?google-drive-ocamlfuse:=200.7.32=20?= =?UTF-8?q?=E2=86=92=200.9.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../google-drive-ocamlfuse/default.nix | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/networking/google-drive-ocamlfuse/default.nix b/pkgs/applications/networking/google-drive-ocamlfuse/default.nix index 48d683e14f21..4260630190a4 100644 --- a/pkgs/applications/networking/google-drive-ocamlfuse/default.nix +++ b/pkgs/applications/networking/google-drive-ocamlfuse/default.nix @@ -4,41 +4,45 @@ buildDunePackage, fetchFromGitHub, extlib, - ocamlfuse, + fuse3, gapi-ocaml, ocaml_sqlite3, + otoml, tiny_httpd, ounit2, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "google-drive-ocamlfuse"; - version = "0.7.32"; + version = "0.9.0"; + + minimalOCamlVersion = "4.13"; src = fetchFromGitHub { owner = "astrada"; repo = "google-drive-ocamlfuse"; - rev = "v${version}"; - hash = "sha256-AWr1tcium70rXFKMTv6xcWxndOJua3UXG8Q04TN1Siw="; + tag = "v${finalAttrs.version}"; + hash = "sha256-nTZdE9F6ufQ/O/Ck6fzoK65uZ0ylMR6HkwKsBNRDjMs="; }; - doCheck = lib.versionAtLeast ocaml.version "5"; + doCheck = lib.versionAtLeast ocaml.version "4.14"; checkInputs = [ ounit2 ]; buildInputs = [ extlib - ocamlfuse + fuse3 gapi-ocaml ocaml_sqlite3 + otoml tiny_httpd ]; meta = { - inherit (src.meta) homepage; + homepage = "https://github.com/astrada/google-drive-ocamlfuse/"; description = "FUSE-based file system backed by Google Drive, written in OCaml"; license = lib.licenses.mit; platforms = lib.platforms.linux; maintainers = with lib.maintainers; [ obadz ]; mainProgram = "google-drive-ocamlfuse"; }; -} +})