Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, python3 3, fetchFromGitHub 4}: 5python3.pkgs.buildPythonApplication rec { 6 pname = "xorex"; 7 version = "0.3.0"; 8 format = "other"; 9 10 src = fetchFromGitHub { 11 owner = "Neo23x0"; 12 repo = "xorex"; 13 rev = version; 14 sha256 = "rBsOSXWnHRhpLmq20XBuGx8gGBM8ouMyOISkbzUcvE4="; 15 }; 16 17 installPhase = '' 18 runHook preInstall 19 20 mkdir -p $out/bin 21 chmod +x xorex.py 22 mv xorex.py $out/bin/xorex 23 24 runHook postInstall 25 ''; 26 27 propagatedBuildInputs = with python3.pkgs; [ 28 colorama 29 pefile 30 ]; 31 32 meta = with lib; { 33 description = "XOR Key Extractor"; 34 homepage = "https://github.com/Neo23x0/xorex"; 35 license = licenses.asl20; 36 maintainers = [ ]; 37 }; 38}