yazi/nix/shell.nix
2024-08-08 22:18:01 +08:00

25 lines
405 B
Nix

{
callPackage,
rust-bin,
nodePackages,
}:
let
mainPkg = callPackage ./yazi.nix { };
in
mainPkg.overrideAttrs (oa: {
nativeBuildInputs = [
(rust-bin.stable.latest.default.override {
extensions = [
"rust-src"
"rustfmt"
"rust-analyzer"
"clippy"
];
})
nodePackages.cspell
] ++ (oa.nativeBuildInputs or [ ]);
env.RUST_BACKTRACE = "1";
})