2023-03-30 22:05:00 +00:00
|
|
|
{ lib
|
|
|
|
, fetchzip
|
|
|
|
, stdenv
|
|
|
|
}:
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cyberchef";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "10.5.2";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/gchq/CyberChef/releases/download/v${version}/CyberChef_v${version}.zip";
|
2023-08-04 22:07:22 +00:00
|
|
|
sha256 = "sha256-sN8dCgmLj0jHfoaUNk2ml/iEJy8/QFfCTRCn9tyTz78=";
|
2022-09-09 14:08:57 +00:00
|
|
|
stripRoot = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/share/cyberchef"
|
|
|
|
mv "CyberChef_v${version}.html" index.html
|
|
|
|
mv * "$out/share/cyberchef"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-13 08:15:51 +00:00
|
|
|
description = "The Cyber Swiss Army Knife for encryption, encoding, compression and data analysis";
|
2022-09-09 14:08:57 +00:00
|
|
|
homepage = "https://gchq.github.io/CyberChef";
|
2023-03-30 22:05:00 +00:00
|
|
|
changelog = "https://github.com/gchq/CyberChef/blob/v${version}/CHANGELOG.md";
|
2022-09-09 14:08:57 +00:00
|
|
|
maintainers = with maintainers; [ sebastianblunt ];
|
|
|
|
license = licenses.asl20;
|
2022-12-28 21:21:41 +00:00
|
|
|
platforms = platforms.all;
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
}
|