5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
30 lines
847 B
Nix
30 lines
847 B
Nix
{ lib
|
|
, fetchzip
|
|
, stdenv
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cyberchef";
|
|
version = "10.5.2";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/gchq/CyberChef/releases/download/v${version}/CyberChef_v${version}.zip";
|
|
sha256 = "sha256-sN8dCgmLj0jHfoaUNk2ml/iEJy8/QFfCTRCn9tyTz78=";
|
|
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;
|
|
};
|
|
}
|