Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
841 B · 43 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344{ lib, stdenv, fetchFromGitHub, python, pyaes, pycrypto, uvloop, wrapPython,}:
stdenv.mkDerivation rec { pname = "mtprotoproxy"; version = "1.1.1";
src = fetchFromGitHub { owner = "alexbers"; repo = "mtprotoproxy"; rev = "v${version}"; sha256 = "sha256-tQ6e1Y25V4qAqBvhhKdirSCYzeALfH+PhNtcHTuBurs="; };
nativeBuildInputs = [ wrapPython ]; pythonPath = [ pyaes pycrypto uvloop ];
installPhase = '' install -Dm755 mtprotoproxy.py $out/bin/mtprotoproxy wrapPythonPrograms '';
meta = with lib; { description = "Async MTProto proxy for Telegram"; license = licenses.mit; homepage = "https://github.com/alexbers/mtprotoproxy"; platforms = python.meta.platforms; maintainers = with maintainers; [ abbradar ]; mainProgram = "mtprotoproxy"; };}