From 29fad1cec0805bbceff1ccdceab22483476d14d1 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Wed, 18 Aug 2021 13:34:34 -0400 Subject: [PATCH] backport postman --- modules/security-tools.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/modules/security-tools.nix b/modules/security-tools.nix index 38a02ae..9e56eb2 100644 --- a/modules/security-tools.nix +++ b/modules/security-tools.nix @@ -31,6 +31,29 @@ in unstable.exploitdb ]; + nixpkgs.overlays = [ + (self: super: { + postman = super.postman.overrideAttrs (old: rec { + buildInputs = old.buildInputs ++ [ pkgs.libxkbcommon ]; + version = "8.10.0"; + src = super.fetchurl { + url = "https://dl.pstmn.io/download/version/${version}/linux64"; + sha256 = "05f3eaa229483a7e1f698e6e2ea2031d37687de540d4fad05ce677ac216db24d"; + name = "postman.tar.gz"; + }; + postFixup = '' + pushd $out/share/postman + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" _Postman + for file in $(find . -type f \( -name \*.node -o -name _Postman -o -name \*.so\* \) ); do + ORIGIN=$(patchelf --print-rpath $file); \ + patchelf --set-rpath "${lib.makeLibraryPath buildInputs}:$ORIGIN" $file + done + popd + ''; + }); + }) + ]; + programs = { wireshark.enable = true; wireshark.package = pkgs.wireshark;