Skip to content

Commit

Permalink
convert-to-import-cargo-lock: avoid top-level with in shell.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
philiptaron authored and fricklerhandwerk committed Jul 29, 2024
1 parent 1dfa4e2 commit 4089e29
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions maintainers/scripts/convert-to-import-cargo-lock/shell.nix
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 4089e29

Please sign in to comment.