Updated flake. (And worked on sbb-tui port to nixpkgs)

This commit is contained in:
2026-04-22 11:19:45 +02:00
parent 28daf4f00f
commit 10a0ea990c
3 changed files with 29 additions and 24 deletions
+18 -13
View File
@@ -1,18 +1,20 @@
{ lib
, buildGoModule
, fetchFromGitHub
, nix-update-script
{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
versionCheckHook
}:
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "sbb-tui";
version = "1.13.4";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "Necrom4";
repo = "sbb-tui";
rev = "v${version}";
sha256 = "sha256-JLjAhs5UbqgNYqpA3cDucrAS6ell+0JiDJNf7G33Nhs=";
tag = "v${finalAttrs.version}";
hash = "sha256-JLjAhs5UbqgNYqpA3cDucrAS6ell+0JiDJNf7G33Nhs=";
};
vendorHash = "sha256-K4DOu3rfSlKAa5JNKCzWWpnWZlXXxtN5Po7p1Spqe1w=";
@@ -20,18 +22,21 @@ buildGoModule rec {
ldflags = [
"-s"
"-w"
"-X main.version=${finalAttrs.version}"
];
doCheck = true;
nativeCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = with lib; {
meta = {
description = "TUI client for Switzerland's public transport timetables, inspired by SBB/CFF/FFS app";
homepage = "https://github.com/Necrom4/sbb-tui";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ tomasrivera ];
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ tomasrivera ];
mainProgram = "sbb-tui";
};
}
})