mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
42 lines
1.3 KiB
Nix
42 lines
1.3 KiB
Nix
{ lib
|
|
, fetchurl
|
|
, appimageTools
|
|
, makeWrapper
|
|
}:
|
|
|
|
let
|
|
pname = "caido";
|
|
version = "0.33.0";
|
|
src = fetchurl {
|
|
url = "https://storage.googleapis.com/caido-releases/v${version}/caido-desktop-v${version}-linux-x86_64.AppImage";
|
|
hash = "sha256-MUQ1tVcIpLrC2RKsWDqv8MBGaHfh56OxIC/ARArQjiU=";
|
|
};
|
|
appimageContents = appimageTools.extractType2 { inherit pname src version; };
|
|
|
|
in appimageTools.wrapType2 {
|
|
inherit pname src version;
|
|
|
|
extraPkgs = pkgs: (appimageTools.defaultFhsEnvArgs.multiPkgs pkgs) ++ [ pkgs.libthai ];
|
|
|
|
extraInstallCommands = ''
|
|
mv $out/bin/${pname}-${version} $out/bin/${pname}
|
|
install -m 444 -D ${appimageContents}/caido.desktop -t $out/share/applications
|
|
install -m 444 -D ${appimageContents}/caido.png \
|
|
$out/share/icons/hicolor/512x512/apps/caido.png
|
|
source "${makeWrapper}/nix-support/setup-hook"
|
|
wrapProgram $out/bin/${pname} \
|
|
--set WEBKIT_DISABLE_COMPOSITING_MODE 1
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A lightweight web security auditing toolkit";
|
|
homepage = "https://caido.io/";
|
|
changelog = "https://github.com/caido/caido/releases/tag/v${version}";
|
|
license = licenses.unfree;
|
|
maintainers = with maintainers; [ octodi ];
|
|
mainProgram = "caido";
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|