};
outputs = { self, nixpkgs, utils, ... }:
- utils.lib.eachDefaultSystem (system:
+ {
+ overlays.default = final: prev: {
+ bcachefs = final.callPackage ./build.nix { };
+ };
+ } // utils.lib.eachDefaultSystem (system:
let
- pkgs = nixpkgs.legacyPackages.${system};
- bcachefs = pkgs.callPackage ./build.nix {};
+ pkgs = import nixpkgs {
+ inherit system;
+ overlays = [ self.overlays.default ];
+ };
in {
packages = {
- default = bcachefs;
+ 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;
+ }) { };
});
}