From 02f7b8e2b89c09ab43b5aaa436c526963d689fda Mon Sep 17 00:00:00 2001 From: Nadir Ishiguro <23151917+nadir-ishiguro@users.noreply.github.com> Date: Fri, 11 Jul 2025 23:39:56 +0200 Subject: [PATCH] nom: tidy up - add version ldflag - add nix-update-script passthru - add changelog reference - remove meta with lib --- pkgs/by-name/no/nom/package.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/no/nom/package.nix b/pkgs/by-name/no/nom/package.nix index a69c3645c878..ddc0f4b1ddfa 100644 --- a/pkgs/by-name/no/nom/package.nix +++ b/pkgs/by-name/no/nom/package.nix @@ -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 ];