convert-to-import-cargo-lock: avoid top-level with in shell.nix

This commit is contained in:
Philip Taron 2024-07-15 21:35:19 -07:00 committed by Valentin Gagarin
parent 1dfa4e2a3f
commit 4089e292e5

View File

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