python312Packages.types-aiobotocore: 2.15.2 -> 2.15.2.post3 (#361801)
[NixPkgs.git] / pkgs / by-name / at / atproto-goat / package.nix
blobb2ba3474d21271096f9e44020a15b20a2bf6b375
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   unstableGitUpdater,
6 }:
8 buildGoModule rec {
9   pname = "atproto-goat";
10   version = "0-unstable-2024-10-29";
12   src = fetchFromGitHub {
13     owner = "bluesky-social";
14     repo = "indigo";
15     rev = "983ce4a481a32a3eb2944c4c76e885d0f6006f83";
16     hash = "sha256-Jo3pI4uRyKh3yV03ijOcg+Uyu75Spmy/VS116MVgleU=";
17   };
19   postPatch = ''
20     substituteInPlace cmd/goat/main.go \
21       --replace-fail "versioninfo.Short()" '"${version}"' \
22       --replace-fail '"github.com/carlmjohnson/versioninfo"' ""
23   '';
25   vendorHash = "sha256-T+jtxubVKskrLGTUa4RI24o/WTSFCBk60HhyCFujPOI=";
27   subPackages = [ "cmd/goat" ];
29   passthru.updateScript = unstableGitUpdater {
30     hardcodeZeroVersion = true;
31   };
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   };