summary refs log tree commit diff
path: root/pkgs/tools/security/xorex
diff options
context:
space:
mode:
authorCole Helbling <cole.e.helbling@outlook.com>2021-04-17 17:52:02 -0700
committerCole Helbling <cole.e.helbling@outlook.com>2021-04-22 13:53:19 -0700
commitc253419a55c22c2d7f4bb2b04de95e3fb2050a9f (patch)
tree23ef3407bcde9e20ca79a4d989fc103a5ac11f7e /pkgs/tools/security/xorex
parentdbfbfa380e1ea73e581489fbc993b97b79c804f8 (diff)
downloadnixpkgs-c253419a55c22c2d7f4bb2b04de95e3fb2050a9f.tar
nixpkgs-c253419a55c22c2d7f4bb2b04de95e3fb2050a9f.tar.gz
nixpkgs-c253419a55c22c2d7f4bb2b04de95e3fb2050a9f.tar.bz2
nixpkgs-c253419a55c22c2d7f4bb2b04de95e3fb2050a9f.tar.lz
nixpkgs-c253419a55c22c2d7f4bb2b04de95e3fb2050a9f.tar.xz
nixpkgs-c253419a55c22c2d7f4bb2b04de95e3fb2050a9f.tar.zst
nixpkgs-c253419a55c22c2d7f4bb2b04de95e3fb2050a9f.zip
xorex: init at 0.3.0
Diffstat (limited to 'pkgs/tools/security/xorex')
-rw-r--r--pkgs/tools/security/xorex/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/tools/security/xorex/default.nix b/pkgs/tools/security/xorex/default.nix
new file mode 100644
index 00000000000..84919f54826
--- /dev/null
+++ b/pkgs/tools/security/xorex/default.nix
@@ -0,0 +1,38 @@
+{ lib
+, python3
+, fetchFromGitHub
+}:
+python3.pkgs.buildPythonApplication rec {
+  pname = "xorex";
+  version = "0.3.0";
+  format = "other";
+
+  src = fetchFromGitHub {
+    owner = "Neo23x0";
+    repo = "xorex";
+    rev = version;
+    sha256 = "rBsOSXWnHRhpLmq20XBuGx8gGBM8ouMyOISkbzUcvE4=";
+  };
+
+  installPhase = ''
+    runHook preInstall
+
+    mkdir -p $out/bin
+    chmod +x xorex.py
+    mv xorex.py $out/bin/xorex
+
+    runHook postInstall
+  '';
+
+  propagatedBuildInputs = with python3.pkgs; [
+    colorama
+    pefile
+  ];
+
+  meta = with lib; {
+    description = "XOR Key Extractor";
+    homepage = "https://github.com/Neo23x0/xorex";
+    license = licenses.asl20;
+    maintainers = teams.determinatesystems.members;
+  };
+}