depot/third_party/nixpkgs/maintainers/scripts/convert-to-import-cargo-lock/shell.nix

17 lines
246 B
Nix

{
pkgs ? import ../../.. { },
}:
let
inherit (pkgs) lib stdenv mkShell;
in
mkShell {
packages =
with pkgs;
[
rustc
cargo
clippy
rustfmt
]
++ lib.optional stdenv.hostPlatform.isDarwin pkgs.libiconv;
}