From 9ea55a78367604c931ed01736742f4291b55dfb0 Mon Sep 17 00:00:00 2001 From: Jake Ginesin Date: Wed, 14 May 2025 20:25:40 -0400 Subject: [PATCH] 391 current 2025-05-14 20:25:14 25.05.20250424.f771eb4 6.12.24 * --- home/home.nix | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/home/home.nix b/home/home.nix index 3d2165d..a6b7a19 100644 --- a/home/home.nix +++ b/home/home.nix @@ -4,6 +4,26 @@ lib, ... }: let + myPerl = pkgs.perl.withPackages (ps: + with ps; [ + perl + NetDNS + NetIP + NetNetmask + StringRandom + XMLWriter + NetWhoisIP + WWWMechanize + ]); + + myDnsenum = + pkgs.runCommand "dnsenum-wrapped" { + nativeBuildInputs = [pkgs.makeWrapper]; + } '' + mkdir -p $out/bin + makeWrapper ${pkgs.dnsenum}/bin/dnsenum $out/bin/dnsenum \ + --set PERL5LIB ${myPerl}/lib/perl5/site_perl + ''; in { # home.packages = builtins.attrValues scriptDerivations; @@ -75,11 +95,7 @@ in { masscan dnsx amass - - (perl.withPackages (ps: with ps; [NetDNS NetIP XMLWriter])) # ensure Perl modules - (pkgs.writeShellScriptBin "dnsenum" '' - exec ${pkgs.dnsenum}/bin/dnsenum "$@" - '') + myDnsenum ] ++ ( with lib; let