Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

exe2hex: init at 1.5.2-unstable-2020-04-27 #288126

Merged
merged 1 commit into from
Jul 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions pkgs/by-name/ex/exe2hex/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{ lib
, stdenv
, fetchFromGitHub
, python3Packages
, expect
}:

python3Packages.buildPythonApplication rec {
pname = "exe2hex";
version = "1.5.2-unstable-2020-04-27";
pyproject = false;

src = fetchFromGitHub {
owner = "g0tmi1k";
repo = "exe2hex";
rev = "e563b353306a0f34d96150b8992f543931f907ea";
hash = "sha256-wriB1k45QWNCIsSb30Z3IilTGZqnc+X1+qkRrxgDxzU=";
};

propagatedBuildInputs = [
expect
];

postPatch = ''
substituteInPlace exe2hex.py \
--replace-fail "/usr/bin/expect" "${lib.getExe expect}"
'';

postInstall = ''
install -Dm 555 exe2hex.py $out/bin/exe2hex
'';

meta = with lib; {
description = "Inline file transfer using in-built Windows tools";
homepage = "https://github.com/g0tmi1k/exe2hex";
mainProgram = "exe2hex";
license = licenses.mit;
maintainers = with maintainers; [ d3vil0p3r ];
};
}
Loading