mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-23 00:00:02 +03:00
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>
This commit is contained in:
parent
b09d3a3356
commit
e6b578917f
@ -1,5 +1,6 @@
|
|||||||
{ 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
|
let
|
||||||
src = nix-gitignore.gitignoreSource [ ] ./.;
|
src = nix-gitignore.gitignoreSource [ ] ./.;
|
||||||
|
|
||||||
@ -30,7 +31,9 @@ in stdenv.mkDerivation {
|
|||||||
zlib # zlib1g
|
zlib # zlib1g
|
||||||
attr
|
attr
|
||||||
udev
|
udev
|
||||||
];
|
] ++ lib.optional fuseSupport fuse3;
|
||||||
|
|
||||||
|
BCACHEFS_FUSE = if fuseSupport then "1" else "";
|
||||||
|
|
||||||
cargoRoot = "rust-src";
|
cargoRoot = "rust-src";
|
||||||
# when git-based crates are updated, run:
|
# when git-based crates are updated, run:
|
||||||
|
Loading…
Reference in New Issue
Block a user