atproto-goat: init at 0-unstable-2024-10-08

This commit is contained in:
Pyrox 2024-10-26 22:05:24 -04:00
parent 1c17fd941d
commit 6d28cc478c
No known key found for this signature in database
GPG Key ID: 8CDF3F7CAA53A0F5

View File

@ -0,0 +1,43 @@
{
lib,
buildGoModule,
fetchFromGitHub,
unstableGitUpdater,
}:
buildGoModule rec {
pname = "atproto-goat";
version = "0-unstable-2024-10-08";
src = fetchFromGitHub {
owner = "bluesky-social";
repo = "indigo";
rev = "06bacb465af714feb77609566aba15ab1ed41e24";
hash = "sha256-wWsE3sAGZQmOBVqTgy4RjoU8zmtuvyQIj9DjwSbtmKw=";
};
postPatch = ''
substituteInPlace cmd/goat/main.go \
--replace-fail "versioninfo.Short()" '"${version}"' \
--replace-fail '"github.com/carlmjohnson/versioninfo"' ""
'';
vendorHash = "sha256-T+jtxubVKskrLGTUa4RI24o/WTSFCBk60HhyCFujPOI=";
subPackages = [ "cmd/goat" ];
passthru.updateScript = unstableGitUpdater {
hardcodeZeroVersion = true;
};
meta = {
description = "Go AT protocol CLI tool";
homepage = "https://github.com/bluesky-social/indigo/blob/main/cmd/goat/README.md";
license = with lib.licenses; [
mit
asl20
];
maintainers = with lib.maintainers; [ pyrox0 ];
mainProgram = "goat";
};
}