nixpkgs/pkgs/by-name/sl/slackdump/package.nix

44 lines
1022 B
Nix
Raw Permalink Normal View History

2024-09-19 19:31:44 -06:00
{
buildGoModule,
lib,
fetchFromGitHub,
stdenv,
darwin,
}:
buildGoModule rec {
pname = "slackdump";
2024-11-07 04:03:19 -07:00
version = "2.6.0";
2024-09-19 19:31:44 -06:00
src = fetchFromGitHub {
owner = "rusq";
repo = "slackdump";
rev = "refs/tags/v${version}";
2024-11-07 04:03:19 -07:00
hash = "sha256-hdSsvV1mQet61pWeo5icDhFxAVNP5QU1fdb1YgyXVWU=";
2024-09-19 19:31:44 -06:00
};
nativeCheckInputs = lib.optional stdenv.hostPlatform.isDarwin darwin.IOKitTools;
checkFlags =
let
skippedTests = [
"TestSession_saveUserCache"
"TestSession_GetUsers"
];
in
[
"-skip=^${builtins.concatStringsSep "$|^" skippedTests}$"
];
2024-11-07 04:03:19 -07:00
vendorHash = "sha256-LjZP00YL0Coc7yY0Bm7AaYoAP37vQVJpVYPxuEnVEp4=";
2024-09-19 19:31:44 -06:00
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;
};
}