Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5 expect, 6}: 7 8python3Packages.buildPythonApplication { 9 pname = "exe2hex"; 10 version = "1.5.2-unstable-2020-04-27"; 11 pyproject = false; 12 13 src = fetchFromGitHub { 14 owner = "g0tmi1k"; 15 repo = "exe2hex"; 16 rev = "e563b353306a0f34d96150b8992f543931f907ea"; 17 hash = "sha256-wriB1k45QWNCIsSb30Z3IilTGZqnc+X1+qkRrxgDxzU="; 18 }; 19 20 propagatedBuildInputs = [ 21 expect 22 ]; 23 24 postPatch = '' 25 substituteInPlace exe2hex.py \ 26 --replace-fail "/usr/bin/expect" "${lib.getExe expect}" 27 ''; 28 29 postInstall = '' 30 install -Dm 555 exe2hex.py $out/bin/exe2hex 31 ''; 32 33 meta = with lib; { 34 description = "Inline file transfer using in-built Windows tools"; 35 homepage = "https://github.com/g0tmi1k/exe2hex"; 36 mainProgram = "exe2hex"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ d3vil0p3r ]; 39 }; 40}