From 7d042cde84d12b1aeeb378dd13fa5f5ce5ec43ee Mon Sep 17 00:00:00 2001 From: figsoda Date: Thu, 1 Jun 2023 23:01:50 -0400 Subject: [PATCH 1/2] ov: 0.23.0 -> 0.30.0 Diff: https://github.com/noborus/ov/compare/refs/tags/v0.23.0...v0.30.0 Changelog: https://github.com/noborus/ov/releases/tag/v0.30.0 --- pkgs/tools/text/ov/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/text/ov/default.nix b/pkgs/tools/text/ov/default.nix index 4dcda3bb3366..284cc1639e56 100644 --- a/pkgs/tools/text/ov/default.nix +++ b/pkgs/tools/text/ov/default.nix @@ -8,20 +8,22 @@ buildGoModule rec { pname = "ov"; - version = "0.23.0"; + version = "0.30.0"; src = fetchFromGitHub { owner = "noborus"; repo = "ov"; rev = "refs/tags/v${version}"; - hash = "sha256-zIPJvlzq9N5sjc7OkdQnxZZYK4RuM6jW4EWLrEzSabg="; + hash = "sha256-xTnUTtMm986MnQEKgExWfABU8E8C+ZiRZvOpg3FY5cY="; }; vendorHash = "sha256-bQREazHu0SQrMKyNPtUvzeKR/zb0FJOLpHBwHml43Hs="; ldflags = [ - "-X main.Version=v${version}" - "-X main.Revision=${src.rev}" + "-s" + "-w" + "-X=main.Version=v${version}" + "-X=main.Revision=${src.rev}" ]; subPackages = [ "." ]; @@ -53,8 +55,8 @@ buildGoModule rec { meta = with lib; { description = "Feature-rich terminal-based text viewer"; homepage = "https://noborus.github.io/ov"; + changelog = "https://github.com/noborus/ov/releases/tag/v${version}"; license = licenses.mit; - platforms = platforms.linux ++ platforms.darwin; - maintainers = with maintainers; [ farcaller ]; + maintainers = with maintainers; [ farcaller figsoda ]; }; } From 943781aa986b98ae25def133e2b6c01039cb0e6c Mon Sep 17 00:00:00 2001 From: figsoda Date: Thu, 1 Jun 2023 23:04:12 -0400 Subject: [PATCH 2/2] ov: add version test --- pkgs/tools/text/ov/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/tools/text/ov/default.nix b/pkgs/tools/text/ov/default.nix index 284cc1639e56..20d7a40b7f58 100644 --- a/pkgs/tools/text/ov/default.nix +++ b/pkgs/tools/text/ov/default.nix @@ -4,6 +4,8 @@ , installShellFiles , pandoc , makeWrapper +, testers +, ov }: buildGoModule rec { @@ -52,6 +54,13 @@ buildGoModule rec { cp $src/ov.yaml $doc/share/$name/sample-config.yaml ''; + passthru.tests = { + version = testers.testVersion { + package = ov; + version = "v${version}"; + }; + }; + meta = with lib; { description = "Feature-rich terminal-based text viewer"; homepage = "https://noborus.github.io/ov";