{
  lib,
  buildGoModule,
  fetchFromGitHub,
  nix-update-script,
}:

buildGoModule (finalAttrs: {
  pname = "gh-skyline";
  version = "0.1.9";

  src = fetchFromGitHub {
    owner = "github";
    repo = "gh-skyline";
    tag = "v${finalAttrs.version}";
    hash = "sha256-benxBu8jppD/HBnglKEZWowdvzDb5sp5+SFJD5fVzKQ=";
  };

  vendorHash = "sha256-br7YEloTCOa0fIL1xAAvvdCdownU5abCLbISLw0jUDw=";

  ldflags = [
    "-s"
    "-w"
  ];

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Generate a 3D model of your GitHub contribution history";
    homepage = "https://github.com/github/gh-skyline";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ PerchunPak ];
    mainProgram = "gh-skyline";
  };
})
