depot/third_party/nixpkgs/pkgs/tools/networking/requestly/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

34 lines
938 B
Nix

{ lib
, appimageTools
, fetchurl
}:
let
pname = "requestly";
version = "1.5.12";
src = fetchurl {
url = "https://github.com/requestly/requestly-desktop-app/releases/download/v${version}/Requestly-${version}.AppImage";
hash = "sha256-HM3+j9E67J1bAklnDtSN5/rOK9Wn7N7h+qlPKR/E8Ns=";
};
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 ];
};
}