2021-10-14 17:19:36 +03:00
|
|
|
{
|
2022-11-25 02:47:29 +03:00
|
|
|
description = "Userspace tools for bcachefs";
|
|
|
|
|
2024-05-22 21:43:43 +03:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
|
2024-05-22 22:08:09 +03:00
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
2024-05-22 21:43:43 +03:00
|
|
|
|
|
|
|
flake-compat = {
|
|
|
|
url = "github:edolstra/flake-compat";
|
|
|
|
flake = false;
|
|
|
|
};
|
2022-11-25 02:47:29 +03:00
|
|
|
};
|
|
|
|
|
2024-05-22 21:41:19 +03:00
|
|
|
outputs =
|
2024-05-22 22:08:09 +03:00
|
|
|
inputs@{
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
flake-parts,
|
|
|
|
flake-compat,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
|
|
# can be extended, but these have proper binary cache support in nixpkgs
|
|
|
|
# as of writing.
|
|
|
|
systems = [
|
|
|
|
"aarch64-linux"
|
|
|
|
"x86_64-linux"
|
|
|
|
];
|
|
|
|
|
|
|
|
perSystem =
|
|
|
|
{
|
|
|
|
self',
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
packages.default = config.packages.bcachefs-tools;
|
|
|
|
packages.bcachefs-tools = pkgs.callPackage ./build.nix { };
|
|
|
|
|
|
|
|
packages.bcachefs-tools-fuse = config.packages.bcachefs-tools.override { fuseSupport = true; };
|
|
|
|
|
|
|
|
formatter = pkgs.nixfmt-rfc-style;
|
|
|
|
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
inputsFrom = [ config.packages.default ];
|
|
|
|
|
|
|
|
LIBCLANG_PATH = "${pkgs.clang.cc.lib}/lib";
|
|
|
|
};
|
2024-05-22 21:51:00 +03:00
|
|
|
};
|
2024-05-22 22:08:09 +03:00
|
|
|
};
|
2021-10-14 17:19:36 +03:00
|
|
|
}
|