Commit 4089e292 authored by Philip Taron's avatar Philip Taron Committed by Valentin Gagarin
Browse files

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

parent 1dfa4e2a
Loading
Loading
Loading
Loading
+15 −3
Original line number Diff line number Diff line
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;
}