diff options
author | Finn Behrens <me@kloenk.de> | 2023-11-19 22:13:14 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-20 15:13:17 -0500 |
commit | e6b578917f51ac7776869875c6fe10c73acd3773 (patch) | |
tree | f06bb3fed96359b4eb2a25f862677dc1175ae501 | |
parent | b09d3a335670620250a2e1fa1a15567c8763dfed (diff) | |
download | bcachefs-tools-e6b578917f51ac7776869875c6fe10c73acd3773.tar.gz |
nix: add bcachefs-fuse package
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>
-rw-r--r-- | build.nix | 7 | ||||
-rw-r--r-- | flake.nix | 1 |
2 files changed, 6 insertions, 2 deletions
@@ -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: @@ -23,6 +23,7 @@ in { packages = { inherit (pkgs) bcachefs; + bcachefs-fuse = pkgs.bcachefs.override { fuseSupport = true; }; default = pkgs.bcachefs; }; |