mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-01-23 00:07:07 +03:00
e6b578917f
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>
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{
|
|
description = "Userspace tools for bcachefs";
|
|
|
|
# Nixpkgs / NixOS version to use.
|
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
inputs.utils.url = "github:numtide/flake-utils";
|
|
inputs.flake-compat = {
|
|
url = "github:edolstra/flake-compat";
|
|
flake = false;
|
|
};
|
|
|
|
outputs = { self, nixpkgs, utils, ... }:
|
|
{
|
|
overlays.default = final: prev: {
|
|
bcachefs = final.callPackage ./build.nix { };
|
|
};
|
|
} // utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [ self.overlays.default ];
|
|
};
|
|
in {
|
|
packages = {
|
|
inherit (pkgs) bcachefs;
|
|
bcachefs-fuse = pkgs.bcachefs.override { fuseSupport = true; };
|
|
default = pkgs.bcachefs;
|
|
};
|
|
|
|
formatter = pkgs.nixfmt;
|
|
|
|
devShells.default = pkgs.callPackage ({ mkShell, rustc, cargo, gnumake
|
|
, gcc, clang, pkg-config, libuuid, libsodium, keyutils, liburcu, zlib
|
|
, libaio, zstd, lz4, udev, bcachefs }:
|
|
mkShell {
|
|
LIBCLANG_PATH = "${clang.cc.lib}/lib";
|
|
inherit (bcachefs) nativeBuildInputs buildInputs;
|
|
}) { };
|
|
});
|
|
}
|