about summary refs log tree commit diff
path: root/pkgs/tools/misc/cyberchef
diff options
context:
space:
mode:
authorSebastian Blunt <47431204+sebastianblunt@users.noreply.github.com>2022-09-04 17:20:03 +0000
committerGitHub <noreply@github.com>2022-09-04 19:20:03 +0200
commit215b0ce94959b2defca4c9204082a98b9f22e75c (patch)
tree183b4cafe82200ec1844194b92b806bbf3fc8189 /pkgs/tools/misc/cyberchef
parent8a6d60cf091bd475cc79a38a30225835a24ae7d1 (diff)
cyberchef: init at 9.46.0 (#189242)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/tools/misc/cyberchef')
-rw-r--r--pkgs/tools/misc/cyberchef/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/tools/misc/cyberchef/default.nix b/pkgs/tools/misc/cyberchef/default.nix
new file mode 100644
index 0000000000000..62fc97171a3cc
--- /dev/null
+++ b/pkgs/tools/misc/cyberchef/default.nix
@@ -0,0 +1,25 @@
+{ 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;
+  };
+}