bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
30 lines
843 B
Nix
30 lines
843 B
Nix
{ lib
|
|
, fetchzip
|
|
, stdenv
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cyberchef";
|
|
version = "10.18.8";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/gchq/CyberChef/releases/download/v${version}/CyberChef_v${version}.zip";
|
|
sha256 = "sha256-1Ta0fgrwBHfUlj7aJkiAHV7MmHRlXJloYt2P889ya+U=";
|
|
stripRoot = false;
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p "$out/share/cyberchef"
|
|
mv "CyberChef_v${version}.html" index.html
|
|
mv * "$out/share/cyberchef"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "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;
|
|
};
|
|
}
|