Add a fuseSupport argument and bcachefs-fuse as flake output with fuse enabled.
Signed-off-by: Finn Behrens <me@kloenk.de>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
{ lib, stdenv, pkg-config, attr, libuuid, libsodium, keyutils, liburcu, zlib
{ lib, stdenv, pkg-config, attr, libuuid, libsodium, keyutils, liburcu, zlib
-, libaio, udev, zstd, lz4, nix-gitignore, rustPlatform, rustc, cargo, }:
+, libaio, udev, zstd, lz4, nix-gitignore, rustPlatform, rustc, cargo, fuse3
+, fuseSupport ? false, }:
let
src = nix-gitignore.gitignoreSource [ ] ./.;
let
src = nix-gitignore.gitignoreSource [ ] ./.;
+ ] ++ lib.optional fuseSupport fuse3;
+
+ BCACHEFS_FUSE = if fuseSupport then "1" else "";
cargoRoot = "rust-src";
# when git-based crates are updated, run:
cargoRoot = "rust-src";
# when git-based crates are updated, run:
in {
packages = {
inherit (pkgs) bcachefs;
in {
packages = {
inherit (pkgs) bcachefs;
+ bcachefs-fuse = pkgs.bcachefs.override { fuseSupport = true; };
default = pkgs.bcachefs;
};
default = pkgs.bcachefs;
};