nom: tidy up

- add version ldflag
 - add nix-update-script passthru
 - add changelog reference
 - remove meta with lib
This commit is contained in:
Nadir Ishiguro 2025-07-11 23:39:56 +02:00
parent 9519ecce17
commit 02f7b8e2b8
No known key found for this signature in database

View File

@ -2,6 +2,7 @@
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
}:
buildGoModule rec {
pname = "nom";
@ -16,12 +17,19 @@ buildGoModule rec {
vendorHash = "sha256-d5KTDZKfuzv84oMgmsjJoXGO5XYLVKxOB5XehqgRvYw=";
meta = with lib; {
ldflags = [
"-X 'main.version=${version}'"
];
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://github.com/guyfedwards/nom";
changelog = "https://github.com/guyfedwards/nom/releases/tag/v${version}";
description = "RSS reader for the terminal";
platforms = platforms.linux ++ platforms.darwin;
license = licenses.gpl3Only;
maintainers = with maintainers; [
platforms = lib.platforms.linux ++ lib.platforms.darwin;
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
nadir-ishiguro
matthiasbeyer
];