summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-06-03 12:32:01 -0400
committerGitHub <noreply@github.com>2023-06-03 12:32:01 -0400
commit8cb8cac87badbdd08da8f0cff425f1b0de80840e (patch)
treefb453685671bbe23565597ccec1351e2709ea675
parentMerge pull request #235762 from r-ryantm/auto-update/reproxy (diff)
parentov: add version test (diff)
downloadnixpkgs-8cb8cac87badbdd08da8f0cff425f1b0de80840e.tar.gz
Merge pull request #235509 from figsoda/ov
-rw-r--r--pkgs/tools/text/ov/default.nix23
1 files changed, 17 insertions, 6 deletions
diff --git a/pkgs/tools/text/ov/default.nix b/pkgs/tools/text/ov/default.nix
index 4dcda3bb3366..20d7a40b7f58 100644
--- a/pkgs/tools/text/ov/default.nix
+++ b/pkgs/tools/text/ov/default.nix
@@ -4,24 +4,28 @@
, installShellFiles
, pandoc
, makeWrapper
+, testers
+, ov
}:
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 = [ "." ];
@@ -50,11 +54,18 @@ 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";
+ 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 ];
};
}