Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 29 lines 785 B view raw
1{ lib, stdenv, fetchFromGitHub, python, pyaes, pycrypto, uvloop, wrapPython }: 2 3stdenv.mkDerivation rec { 4 pname = "mtprotoproxy"; 5 version = "1.1.1"; 6 7 src = fetchFromGitHub { 8 owner = "alexbers"; 9 repo = "mtprotoproxy"; 10 rev = "v${version}"; 11 sha256 = "sha256-tQ6e1Y25V4qAqBvhhKdirSCYzeALfH+PhNtcHTuBurs="; 12 }; 13 14 nativeBuildInputs = [ wrapPython ]; 15 pythonPath = [ pyaes pycrypto uvloop ]; 16 17 installPhase = '' 18 install -Dm755 mtprotoproxy.py $out/bin/mtprotoproxy 19 wrapPythonPrograms 20 ''; 21 22 meta = with lib; { 23 description = "Async MTProto proxy for Telegram"; 24 license = licenses.mit; 25 homepage = "https://github.com/alexbers/mtprotoproxy"; 26 platforms = python.meta.platforms; 27 maintainers = with maintainers; [ abbradar ]; 28 }; 29}