depot/third_party/nixpkgs/pkgs/tools/networking/requestly/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

34 lines
938 B
Nix

{ lib
, appimageTools
, fetchurl
}:
let
pname = "requestly";
version = "1.5.16";
src = fetchurl {
url = "https://github.com/requestly/requestly-desktop-app/releases/download/v${version}/Requestly-${version}.AppImage";
hash = "sha256-c+Ti7j+3r0hSw2uvaDkavykUQQdvg0OgD1XdDTQbJuA=";
};
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 ];
};
}