mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
215b0ce949
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
26 lines
731 B
Nix
26 lines
731 B
Nix
{ lib, fetchzip, stdenv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cyberchef";
|
|
version = "9.46.0";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/gchq/CyberChef/releases/download/v${version}/CyberChef_v${version}.zip";
|
|
sha256 = "sha256-4IqXp7fYgXwIuciUklrQoRD2XagatdhQ3l6ghjgTCR8=";
|
|
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";
|
|
maintainers = with maintainers; [ sebastianblunt ];
|
|
license = licenses.asl20;
|
|
};
|
|
}
|