nixpkgs/pkgs/tools/security/xorex/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

40 lines
721 B
Nix

{ 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";
mainProgram = "xorex";
homepage = "https://github.com/Neo23x0/xorex";
license = licenses.asl20;
maintainers = [ ];
};
}