nix: add devShell

Add a nix devShell output to provide a development environment for nix users.

Signed-off-by: Finn Behrens <me@kloenk.de>
This commit is contained in:
Finn Behrens 2023-11-05 11:44:27 +01:00 committed by Finn Behrens
parent 813310c343
commit 61134a06fa

View File

@ -27,5 +27,13 @@
};
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;
}) { };
});
}