default.nix (921B)
1 { 2 lib, 3 buildGoModule, 4 fetchFromGitea, 5 openssl, 6 tdlib, 7 zlib, 8 testers, 9 telegabber, 10 }: 11 12 buildGoModule rec { 13 pname = "telegabber"; 14 version = "1.9.6"; 15 16 src = fetchFromGitea { 17 domain = "dev.narayana.im"; 18 owner = "narayana"; 19 repo = "telegabber"; 20 rev = "v${version}"; 21 hash = "sha256-UkVuEgrRHDtC5Rkci87ecmvK4JyACFBplzecoIXM8vk="; 22 }; 23 24 vendorHash = "sha256-3qSa6yJXSjrmTIBrulCnZMZzqNtpkzpzWeYAzHl8uUM="; 25 26 buildInputs = [ 27 openssl 28 tdlib 29 zlib 30 ]; 31 32 postInstall = '' 33 install -Dm644 config_schema.json config.yml.example -t $out/share/telegabber 34 ''; 35 36 passthru.tests.version = testers.testVersion { package = telegabber; }; 37 38 meta = { 39 description = "XMPP/Jabber transport to Telegram network"; 40 homepage = "https://dev.narayana.im/narayana/telegabber"; 41 license = lib.licenses.asl20; 42 maintainers = [ lib.maintainers.sikmir ]; 43 broken = true; 44 }; 45 }