nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 8178f5161391ff8517a68ec45d6e69c18da09852
parent 2d59e0cbbcc8f28f77ccc66b7505c7306726db2d
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Fri, 11 Feb 2022 19:07:14 +0300

Add telegabber

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/misc/telegabber/default.nix | 30++++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -301,6 +301,7 @@ lib.makeScope newScope ( sdorfehs = callPackage ./misc/sdorfehs { }; taskcoach = callPackage ./misc/taskcoach { }; tcvt = callPackage ./misc/tcvt { }; + telegabber = callPackage ./misc/telegabber { }; tlstunnel = callPackage ./misc/tlstunnel { }; xfractint = callPackage ./misc/xfractint { }; xtr = callPackage ./misc/xtr { diff --git a/pkgs/misc/telegabber/default.nix b/pkgs/misc/telegabber/default.nix @@ -0,0 +1,30 @@ +{ lib, buildGoModule, fetchFromGitea, openssl, tdlib, zlib }: + +buildGoModule rec { + pname = "telegabber"; + version = "1.1.0"; + + src = fetchFromGitea { + domain = "dev.narayana.im"; + owner = "narayana"; + repo = pname; + rev = "v${version}"; + hash = "sha256-iwJ3QjJ2KjKneuaWRcOZ7ji7tgh1I92CWkKjLnCVMPw="; + }; + + vendorSha256 = "sha256-rRP3+HVc18VycJazJsmU1WOOo3m4fRLfouywTlXZVr8="; + + buildInputs = [ openssl tdlib zlib ]; + + postInstall = '' + install -Dm644 config_schema.json config.yml.example -t $out/share/telegabber + ''; + + meta = with lib; { + description = "XMPP/Jabber transport to Telegram network"; + inherit (src.meta) homepage; + license = licenses.asl20; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}