Unverified Commit b2526573 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

tyson: 0.1.1 -> 0.1.1-unstable-2024-04-10 (#354242)

parents aeeedfc5 16956ab4
Loading
Loading
Loading
Loading
+15 −11
Original line number Diff line number Diff line
{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
{
  lib,
  buildGoModule,
  fetchFromGitHub,
  installShellFiles,
}:

buildGoModule rec {
  pname = "tyson";
  version = "0.1.1";
  version = "0.1.1-unstable-2024-04-10";

  src = fetchFromGitHub {
    owner = "jetpack-io";
    repo = "tyson";
    rev = "v${version}";
    hash = "sha256-c4ROLn+BSX7v/4C9/IeU6HiE2YvnqDuXXGp2iZhAVk4=";
    rev = "d6b38819db9b260928b29f4d39bf4c72841c6a01";
    hash = "sha256-NoQJBEedV3NDNQ4PVvvjjsO7N+rq40LWKp962P+naEY=";
  };

  vendorHash = "sha256-NhDv7oH8LK/vebwjs55tsCCWVhbZZd15z5ewOF5z9+Y=";
  vendorHash = "sha256-kJIfKgVaHuCYvvTZXyuZ/Hg8z1BlW4oW6+5s1inFizg=";

  nativeBuildInputs = [
    installShellFiles
  ];

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

  postInstall = ''
    installShellCompletion --cmd tyson \
@@ -33,8 +37,8 @@ buildGoModule rec {
  meta = with lib; {
    description = "TypeScript as a configuration language";
    mainProgram = "tyson";
    homepage = "https://github.com/jetpack-io/tyson";
    changelog = "https://github.com/jetpack-io/tyson/releases/tag/${src.rev}";
    homepage = "https://github.com/jetify-com/tyson";
    changelog = "https://github.com/jetify-com/tyson/releases/tag/${src.rev}";
    license = licenses.asl20;
    maintainers = with maintainers; [ figsoda ];
  };