about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/xorex/default.nix
blob: a1a6e655996a9d8452a7a867b1ae8309db0a05a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 = [ ];
  };
}