Files
nixpkgs/pkgs/by-name/sl/slackdump/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

50 lines
1.2 KiB
Nix

{
buildGoModule,
lib,
fetchFromGitHub,
stdenv,
nix-update-script,
darwin,
}:
buildGoModule rec {
pname = "slackdump";
version = "3.1.7";
src = fetchFromGitHub {
owner = "rusq";
repo = "slackdump";
tag = "v${version}";
hash = "sha256-rVNXVkM4DpfNdqDGzaw23zOL/VSbzKsCyOc/Cq/mtZM=";
};
nativeCheckInputs = lib.optional stdenv.hostPlatform.isDarwin darwin.IOKitTools;
checkFlags =
let
skippedTests = [
"TestSession_saveUserCache"
"TestSession_GetUsers"
"Test_exportV3" # This was skipped on upstream's CI. It is seemed that some file are missed
];
in
[
"-skip=^${builtins.concatStringsSep "$|^" skippedTests}$"
];
vendorHash = "sha256-XnEuxYxrkKTJcXrDFQB4tw3dCJFVwGkw8kKJm+y+ees=";
__darwinAllowLocalNetworking = true;
passthru.updateScript = nix-update-script { };
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;
};
}