mautrix-slack: init at 0.1.4 (#358856)

authored by

Gaétan Lepage and committed by
GitHub
ca76a7d6 7af7b675

+48
+48
pkgs/by-name/ma/mautrix-slack/package.nix
···
··· 1 + { 2 + lib, 3 + buildGoModule, 4 + fetchFromGitHub, 5 + olm, 6 + nix-update-script, 7 + versionCheckHook, 8 + # This option enables the use of an experimental pure-Go implementation of 9 + # the Olm protocol instead of libolm for end-to-end encryption. Using goolm 10 + # is not recommended by the mautrix developers, but they are interested in 11 + # people trying it out in non-production-critical environments and reporting 12 + # any issues they run into. 13 + withGoolm ? false, 14 + }: 15 + let 16 + version = "0.1.4"; 17 + in 18 + buildGoModule { 19 + pname = "mautrix-slack"; 20 + inherit version; 21 + 22 + src = fetchFromGitHub { 23 + owner = "mautrix"; 24 + repo = "slack"; 25 + tag = "v${version}"; 26 + hash = "sha256-MDbWvbEY8+CrUL1SnjdJ4SqyOH/5gPsEQkLnTHyJdOo="; 27 + }; 28 + 29 + vendorHash = "sha256-8U6ifMLRF7PJyG3hWKgBtj/noO/eCXXD60aeB4p2W54="; 30 + 31 + buildInputs = lib.optional (!withGoolm) olm; 32 + tags = lib.optional withGoolm "goolm"; 33 + 34 + nativeInstallCheckInputs = [ versionCheckHook ]; 35 + versionCheckProgramArg = [ "--version" ]; 36 + doInstallCheck = true; 37 + 38 + passthru.updateScript = nix-update-script { }; 39 + 40 + meta = { 41 + description = "Matrix-Slack puppeting bridge"; 42 + homepage = "https://github.com/mautrix/slack"; 43 + changelog = "https://github.com/mautrix/slack/blob/v${version}/CHANGELOG.md"; 44 + license = lib.licenses.agpl3Only; 45 + maintainers = with lib.maintainers; [ BonusPlay ]; 46 + mainProgram = "mautrix-slack"; 47 + }; 48 + }