nixpkgs/pkgs/servers/mtprotoproxy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
819 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, python, pyaes, pycrypto, uvloop, wrapPython }:
2019-06-09 08:18:59 +00:00
stdenv.mkDerivation rec {
pname = "mtprotoproxy";
2023-04-27 16:29:51 +00:00
version = "1.1.1";
2019-06-09 08:18:59 +00:00
src = fetchFromGitHub {
owner = "alexbers";
repo = "mtprotoproxy";
rev = "v${version}";
2023-04-27 16:29:51 +00:00
sha256 = "sha256-tQ6e1Y25V4qAqBvhhKdirSCYzeALfH+PhNtcHTuBurs=";
2019-06-09 08:18:59 +00:00
};
nativeBuildInputs = [ wrapPython ];
2019-09-26 19:48:03 +00:00
pythonPath = [ pyaes pycrypto uvloop ];
2019-06-09 08:18:59 +00:00
installPhase = ''
install -Dm755 mtprotoproxy.py $out/bin/mtprotoproxy
wrapPythonPrograms
'';
meta = with lib; {
2019-06-09 08:18:59 +00:00
description = "Async MTProto proxy for Telegram";
license = licenses.mit;
homepage = "https://github.com/alexbers/mtprotoproxy";
2019-06-09 08:18:59 +00:00
platforms = python.meta.platforms;
maintainers = with maintainers; [ abbradar ];
2023-11-23 21:09:35 +00:00
mainProgram = "mtprotoproxy";
2019-06-09 08:18:59 +00:00
};
}