slackdump: init at 2.5.11

This commit is contained in:
wxt 2024-09-20 09:31:44 +08:00
parent 277211f755
commit 10597023a8
No known key found for this signature in database
GPG Key ID: F62181757D8BF693

View File

@ -0,0 +1,43 @@
{
buildGoModule,
lib,
fetchFromGitHub,
stdenv,
darwin,
}:
buildGoModule rec {
pname = "slackdump";
version = "2.5.11";
src = fetchFromGitHub {
owner = "rusq";
repo = "slackdump";
rev = "refs/tags/v${version}";
hash = "sha256-othSIR+KyekUt+/LWhaM5Y6LGsujDCZTfLJotTcPXc0=";
};
nativeCheckInputs = lib.optional stdenv.hostPlatform.isDarwin darwin.IOKitTools;
checkFlags =
let
skippedTests = [
"TestSession_saveUserCache"
"TestSession_GetUsers"
];
in
[
"-skip=^${builtins.concatStringsSep "$|^" skippedTests}$"
];
vendorHash = "sha256-6GVXzaJ5Lrt4fF0c9cbx6AqpgCwlYgKf6jUJkUyxc0s=";
meta = {
homepage = "https://github.com/rusq/slackdump";
changelog = "https://github.com/rusq/slackdump/releases/tag/v${version}";
description = "Tools for saving Slack's data without admin privileges";
maintainers = with lib.maintainers; [ bot-wxt1221 ];
mainProgram = "slackdump";
license = lib.licenses.gpl3Plus;
};
}