yazi/nix/shell.nix

25 lines
405 B
Nix
Raw Normal View History

2024-08-08 17:18:01 +03:00
{
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"
];
})
2023-09-22 11:08:17 +03:00
nodePackages.cspell
2024-08-08 17:18:01 +03:00
] ++ (oa.nativeBuildInputs or [ ]);
2023-09-22 11:08:17 +03:00
2024-08-08 17:18:01 +03:00
env.RUST_BACKTRACE = "1";
})