1 { lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, madonctl }:
7 src = fetchFromGitHub {
11 hash = "sha256-mo185EKjLkiujAKcAFM1XqkXWvcfYbnv+r3dF9ywaf8=";
16 nativeBuildInputs = [ installShellFiles ];
18 ldflags = [ "-s" "-w" ];
21 installShellCompletion --cmd madonctl \
22 --bash <($out/bin/madonctl completion bash) \
23 --zsh <($out/bin/madonctl completion zsh)
26 passthru.tests.version = testers.testVersion {
28 command = "madonctl version";
32 description = "CLI for the Mastodon social network API";
33 homepage = "https://github.com/McKael/madonctl";
34 license = licenses.mit;
36 mainProgram = "madonctl";