From 35fc25f05ef0a281a50973d472327a3c7b8a18c0 Mon Sep 17 00:00:00 2001 From: Mostly Void <7rat13@gmail.com> Date: Sat, 8 Jul 2023 14:55:26 +0200 Subject: [PATCH] requestly: init at 1.5.6 --- pkgs/tools/networking/requestly/default.nix | 34 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/tools/networking/requestly/default.nix diff --git a/pkgs/tools/networking/requestly/default.nix b/pkgs/tools/networking/requestly/default.nix new file mode 100644 index 000000000000..33d03140c398 --- /dev/null +++ b/pkgs/tools/networking/requestly/default.nix @@ -0,0 +1,34 @@ +{ lib +, appimageTools +, fetchurl +}: + +let + pname = "requestly"; + version = "1.5.6"; + + src = fetchurl { + url = "https://github.com/requestly/requestly-desktop-app/releases/download/v${version}/Requestly-${version}.AppImage"; + hash = "sha256-Yb90OGIIvExfNPoJPmuZSvtU5OQVuGqh4EmyKltE+is="; + }; + + appimageContents = appimageTools.extractType2 { inherit pname version src; }; +in +appimageTools.wrapType2 { + inherit pname version src; + + extraInstallCommands = '' + mv $out/bin/${pname}-${version} $out/bin/${pname} + + install -Dm 444 ${appimageContents}/${pname}.desktop -t $out/share/applications + cp -r ${appimageContents}/usr/share/icons $out/share + ''; + + meta = with lib; { + description = "Intercept & Modify HTTP Requests"; + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; + homepage = "https://requestly.io"; + license = licenses.agpl3Only; + maintainers = with maintainers; [ dit7ya ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bbd930189032..56dad002bcef 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19228,6 +19228,8 @@ with pkgs; inherit (callPackage ../development/tools/replay-io { }) replay-io replay-node-cli; + requestly = callPackage ../tools/networking/requestly { }; + reshape = callPackage ../development/tools/reshape { } ; retdec = callPackage ../development/tools/analysis/retdec {