From: Finn Behrens Date: Sun, 19 Nov 2023 21:13:14 +0000 (+0100) Subject: nix: add bcachefs-fuse package X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e6b578917f51ac7776869875c6fe10c73acd3773;p=bcachefs-tools-debian nix: add bcachefs-fuse package Add a fuseSupport argument and bcachefs-fuse as flake output with fuse enabled. Signed-off-by: Finn Behrens Signed-off-by: Kent Overstreet --- diff --git a/build.nix b/build.nix index e05dad4..831c7e9 100644 --- a/build.nix +++ b/build.nix @@ -1,5 +1,6 @@ { 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 [ ] ./.; @@ -30,7 +31,9 @@ in stdenv.mkDerivation { zlib # zlib1g attr udev - ]; + ] ++ lib.optional fuseSupport fuse3; + + BCACHEFS_FUSE = if fuseSupport then "1" else ""; cargoRoot = "rust-src"; # when git-based crates are updated, run: diff --git a/flake.nix b/flake.nix index c4185e7..b8f9ce5 100644 --- a/flake.nix +++ b/flake.nix @@ -23,6 +23,7 @@ in { packages = { inherit (pkgs) bcachefs; + bcachefs-fuse = pkgs.bcachefs.override { fuseSupport = true; }; default = pkgs.bcachefs; };