forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / sl / slackdump / package.nix
blob734d8de262b6dae82e83384b93ac513556c088bd
2   buildGoModule,
3   lib,
4   fetchFromGitHub,
5   stdenv,
6   darwin,
7 }:
9 buildGoModule rec {
10   pname = "slackdump";
11   version = "2.6.0";
13   src = fetchFromGitHub {
14     owner = "rusq";
15     repo = "slackdump";
16     rev = "refs/tags/v${version}";
17     hash = "sha256-hdSsvV1mQet61pWeo5icDhFxAVNP5QU1fdb1YgyXVWU=";
18   };
20   nativeCheckInputs = lib.optional stdenv.hostPlatform.isDarwin darwin.IOKitTools;
22   checkFlags =
23     let
24       skippedTests = [
25         "TestSession_saveUserCache"
26         "TestSession_GetUsers"
27       ];
28     in
29     [
30       "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$"
31     ];
33   vendorHash = "sha256-LjZP00YL0Coc7yY0Bm7AaYoAP37vQVJpVYPxuEnVEp4=";
35   meta = {
36     homepage = "https://github.com/rusq/slackdump";
37     changelog = "https://github.com/rusq/slackdump/releases/tag/v${version}";
38     description = "Tools for saving Slack's data without admin privileges";
39     maintainers = with lib.maintainers; [ bot-wxt1221 ];
40     mainProgram = "slackdump";
41     license = lib.licenses.gpl3Plus;
42   };