Unverified Commit 579e0a2b authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

sbb-tui: init at 1.13.4 (#511553)

parents a5f16a4a b2e3d337
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -27730,6 +27730,12 @@
    githubId = 7727887;
    name = "Tomas Kala";
  };
  tomasrivera = {
    email = "tomas.riveral@icloud.com";
    github = "tomasriveral";
    githubId = 137088692;
    name = "Tomás Rivera";
  };
  tomberek = {
    email = "tomberek@gmail.com";
    matrix = "@tomberek:matrix.org";
+42 −0
Original line number Diff line number Diff line
{
  lib,
  buildGoModule,
  fetchFromGitHub,
  nix-update-script,
  versionCheckHook,
}:

buildGoModule (finalAttrs: {
  pname = "sbb-tui";
  version = "1.13.4";
  __structuredAttrs = true;
  src = fetchFromGitHub {
    owner = "Necrom4";
    repo = "sbb-tui";
    tag = "v${finalAttrs.version}";
    hash = "sha256-JLjAhs5UbqgNYqpA3cDucrAS6ell+0JiDJNf7G33Nhs=";
  };

  vendorHash = "sha256-K4DOu3rfSlKAa5JNKCzWWpnWZlXXxtN5Po7p1Spqe1w=";

  ldflags = [
    "-s"
    "-w"
    "-X main.version=${finalAttrs.version}"
  ];

  doCheck = true;

  nativeCheckInputs = [ versionCheckHook ];

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

  meta = {
    description = "TUI client for Switzerland's public transport timetables, inspired by SBB/CFF/FFS app";
    homepage = "https://github.com/Necrom4/sbb-tui";
    license = lib.licenses.mit;
    platforms = lib.platforms.unix;
    maintainers = with lib.maintainers; [ tomasrivera ];
    mainProgram = "sbb-tui";
  };
})