nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 ocaml,
4 buildDunePackage,
5 fetchFromGitHub,
6 extlib,
7 ocamlfuse,
8 gapi-ocaml,
9 ocaml_sqlite3,
10 tiny_httpd,
11 ounit2,
12}:
13
14buildDunePackage rec {
15 pname = "google-drive-ocamlfuse";
16 version = "0.7.32";
17
18 src = fetchFromGitHub {
19 owner = "astrada";
20 repo = "google-drive-ocamlfuse";
21 rev = "v${version}";
22 hash = "sha256-AWr1tcium70rXFKMTv6xcWxndOJua3UXG8Q04TN1Siw=";
23 };
24
25 doCheck = lib.versionAtLeast ocaml.version "5";
26 checkInputs = [ ounit2 ];
27
28 buildInputs = [
29 extlib
30 ocamlfuse
31 gapi-ocaml
32 ocaml_sqlite3
33 tiny_httpd
34 ];
35
36 meta = {
37 inherit (src.meta) homepage;
38 description = "FUSE-based file system backed by Google Drive, written in OCaml";
39 license = lib.licenses.mit;
40 platforms = lib.platforms.linux;
41 maintainers = with lib.maintainers; [ obadz ];
42 mainProgram = "google-drive-ocamlfuse";
43 };
44}