mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
Updated flake. (And worked on sbb-tui port to nixpkgs)
This commit is contained in:
Generated
+9
-9
@@ -33,11 +33,11 @@
|
|||||||
"quickshell": "quickshell"
|
"quickshell": "quickshell"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1775801889,
|
"lastModified": 1776670101,
|
||||||
"narHash": "sha256-q1LGwhQbNOurIAClh5YwKVU2kJ5lTCxRYZf48bAb9IM=",
|
"narHash": "sha256-VmPWtG6H+k2tgGnpYwNO5YueHOBdOXXTiBTrjXqcHag=",
|
||||||
"owner": "caelestia-dots",
|
"owner": "caelestia-dots",
|
||||||
"repo": "shell",
|
"repo": "shell",
|
||||||
"rev": "0e07176ff149d02391531c802b51c28e73185f30",
|
"rev": "b94ee8d41bad1ea59395d6184425036fa7121bc5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -103,11 +103,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1775763530,
|
"lastModified": 1776329215,
|
||||||
"narHash": "sha256-BuTK9z1QEwWPOIakQ1gCN4pa4VwVJpfptYCviy2uOGc=",
|
"narHash": "sha256-a8BYi3mzoJ/AcJP8UldOx8emoPRLeWqALZWu4ZvjPXw=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "b0188973b4b2a5b6bdba8b65381d6cd09a533da0",
|
"rev": "b86751bc4085f48661017fa226dee99fab6c651b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -119,11 +119,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1775595990,
|
"lastModified": 1776560675,
|
||||||
"narHash": "sha256-OEf7YqhF9IjJFYZJyuhAypgU+VsRB5lD4DuiMws5Ltc=",
|
"narHash": "sha256-p68udKWWh7+V4ZPpcMDq0gTHWNZJnr4JPI+kHPPE40o=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "4e92bbcdb030f3b4782be4751dc08e6b6cb6ccf2",
|
"rev": "e07580dae39738e46609eaab8b154de2488133ce",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -270,11 +270,11 @@
|
|||||||
#vivify # for NoteWrapper
|
#vivify # for NoteWrapper
|
||||||
# this is more up to date
|
# this is more up to date
|
||||||
(callPackage ../../modules/packages/vivify.nix {})
|
(callPackage ../../modules/packages/vivify.nix {})
|
||||||
(callPackage ../../modules/packages/sbb-tui.nix {})
|
#(callPackage ../../modules/packages/sbb-tui.nix {})
|
||||||
pkgs-unstable.nixpkgs-review
|
pkgs-unstable.nixpkgs-review
|
||||||
pkgs-unstable.nixfmt-tree
|
pkgs-unstable.nixfmt-tree
|
||||||
pkgs-unstable.treefmt
|
pkgs-unstable.treefmt
|
||||||
helix
|
kakoune
|
||||||
];
|
];
|
||||||
|
|
||||||
# fonts
|
# fonts
|
||||||
|
|||||||
@@ -1,18 +1,20 @@
|
|||||||
{ lib
|
{
|
||||||
, buildGoModule
|
lib,
|
||||||
, fetchFromGitHub
|
buildGoModule,
|
||||||
, nix-update-script
|
fetchFromGitHub,
|
||||||
|
nix-update-script,
|
||||||
|
versionCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule (finalAttrs: {
|
||||||
pname = "sbb-tui";
|
pname = "sbb-tui";
|
||||||
version = "1.13.4";
|
version = "1.13.4";
|
||||||
|
__structuredAttrs = true;
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Necrom4";
|
owner = "Necrom4";
|
||||||
repo = "sbb-tui";
|
repo = "sbb-tui";
|
||||||
rev = "v${version}";
|
tag = "v${finalAttrs.version}";
|
||||||
sha256 = "sha256-JLjAhs5UbqgNYqpA3cDucrAS6ell+0JiDJNf7G33Nhs=";
|
hash = "sha256-JLjAhs5UbqgNYqpA3cDucrAS6ell+0JiDJNf7G33Nhs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-K4DOu3rfSlKAa5JNKCzWWpnWZlXXxtN5Po7p1Spqe1w=";
|
vendorHash = "sha256-K4DOu3rfSlKAa5JNKCzWWpnWZlXXxtN5Po7p1Spqe1w=";
|
||||||
@@ -20,18 +22,21 @@ buildGoModule rec {
|
|||||||
ldflags = [
|
ldflags = [
|
||||||
"-s"
|
"-s"
|
||||||
"-w"
|
"-w"
|
||||||
|
"-X main.version=${finalAttrs.version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
|
nativeCheckInputs = [ versionCheckHook ];
|
||||||
|
|
||||||
passthru.updateScript = nix-update-script { };
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "TUI client for Switzerland's public transport timetables, inspired by SBB/CFF/FFS app";
|
description = "TUI client for Switzerland's public transport timetables, inspired by SBB/CFF/FFS app";
|
||||||
homepage = "https://github.com/Necrom4/sbb-tui";
|
homepage = "https://github.com/Necrom4/sbb-tui";
|
||||||
license = licenses.mit;
|
license = lib.licenses.mit;
|
||||||
platforms = platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
maintainers = with maintainers; [ tomasrivera ];
|
maintainers = with lib.maintainers; [ tomasrivera ];
|
||||||
mainProgram = "sbb-tui";
|
mainProgram = "sbb-tui";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user