blob: 6674d6f336756464e638dda8ff73dd5f1ac67235 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
lib,
buildGoModule,
fetchFromGitHub,
libpcap,
versionCheckHook,
nix-update-script,
}:
buildGoModule (finalAttrs: {
pname = "bsky-cli";
version = "0.0.82";
src = fetchFromGitHub {
owner = "mattn";
repo = "bsky";
tag = "v${finalAttrs.version}";
hash = "sha256-2Qtr9Q01ZbjfrZFw8315hDGiX2CmyQ0ru1MhqTvdjVw=";
};
vendorHash = "sha256-pICYDE5rpGdyII53Ucxx2u51MG604/yjz9W9xsO3ZLs=";
buildInputs = [
libpcap
];
ldflags = [
"-s"
"-w"
];
doInstallCheck = true;
versionCheckProgram = "${placeholder "out"}/bin/bsky";
nativeBuildInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Cli application for bluesky social";
homepage = "https://github.com/mattn/bsky";
changelog = "https://github.com/mattn/bsky/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ isabelroses ];
mainProgram = "bsky";
};
})
|