From 1dfa4e2a3f0a2c7f0f214257eb854a06d0c8173a Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Mon, 15 Jul 2024 21:32:34 -0700 Subject: [PATCH] metasploit-env: avoid top-level with in shell.nix --- pkgs/tools/security/metasploit/shell.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/security/metasploit/shell.nix b/pkgs/tools/security/metasploit/shell.nix index ccd510f63af20..4076205815392 100644 --- a/pkgs/tools/security/metasploit/shell.nix +++ b/pkgs/tools/security/metasploit/shell.nix @@ -1,9 +1,11 @@ # Env to update Gemfile.lock / gemset.nix -with import {}; -stdenv.mkDerivation { +{ + pkgs ? import ../../../.. { }, +}: +pkgs.stdenv.mkDerivation { name = "env"; - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ + nativeBuildInputs = [ pkgs.pkg-config ]; + buildInputs = with pkgs; [ bundix git libiconv