nixpkgs/pkgs/tools/misc/cyberchef/default.nix
2024-04-09 18:11:48 +00:00

31 lines
847 B
Nix

{ lib
, fetchzip
, stdenv
}:
stdenv.mkDerivation rec {
pname = "cyberchef";
version = "10.15.1";
src = fetchzip {
url = "https://github.com/gchq/CyberChef/releases/download/v${version}/CyberChef_v${version}.zip";
sha256 = "sha256-IJ3Id/Pn6KVBQwRFBpECDkeEXQ9J2WRK4NgeSqZoP8w=";
stripRoot = false;
};
installPhase = ''
mkdir -p "$out/share/cyberchef"
mv "CyberChef_v${version}.html" index.html
mv * "$out/share/cyberchef"
'';
meta = with lib; {
description = "The Cyber Swiss Army Knife for encryption, encoding, compression and data analysis";
homepage = "https://gchq.github.io/CyberChef";
changelog = "https://github.com/gchq/CyberChef/blob/v${version}/CHANGELOG.md";
maintainers = with maintainers; [ sebastianblunt ];
license = licenses.asl20;
platforms = platforms.all;
};
}