Skip to content

Commit ed9a031

Browse files
authored
atproto-goat: init at 0-unstable-2024-10-08 (#351549)
2 parents 18f985d + 6d28cc4 commit ed9a031

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
lib,
3+
buildGoModule,
4+
fetchFromGitHub,
5+
unstableGitUpdater,
6+
}:
7+
8+
buildGoModule rec {
9+
pname = "atproto-goat";
10+
version = "0-unstable-2024-10-08";
11+
12+
src = fetchFromGitHub {
13+
owner = "bluesky-social";
14+
repo = "indigo";
15+
rev = "06bacb465af714feb77609566aba15ab1ed41e24";
16+
hash = "sha256-wWsE3sAGZQmOBVqTgy4RjoU8zmtuvyQIj9DjwSbtmKw=";
17+
};
18+
19+
postPatch = ''
20+
substituteInPlace cmd/goat/main.go \
21+
--replace-fail "versioninfo.Short()" '"${version}"' \
22+
--replace-fail '"github.com/carlmjohnson/versioninfo"' ""
23+
'';
24+
25+
vendorHash = "sha256-T+jtxubVKskrLGTUa4RI24o/WTSFCBk60HhyCFujPOI=";
26+
27+
subPackages = [ "cmd/goat" ];
28+
29+
passthru.updateScript = unstableGitUpdater {
30+
hardcodeZeroVersion = true;
31+
};
32+
33+
meta = {
34+
description = "Go AT protocol CLI tool";
35+
homepage = "https://github.com/bluesky-social/indigo/blob/main/cmd/goat/README.md";
36+
license = with lib.licenses; [
37+
mit
38+
asl20
39+
];
40+
maintainers = with lib.maintainers; [ pyrox0 ];
41+
mainProgram = "goat";
42+
};
43+
}

0 commit comments

Comments
 (0)