Merge pull request #235509 from figsoda/ov

authored by

figsoda and committed by
GitHub
8cb8cac8 995a59e5

+17 -6
+17 -6
pkgs/tools/text/ov/default.nix
··· 4 4 , installShellFiles 5 5 , pandoc 6 6 , makeWrapper 7 + , testers 8 + , ov 7 9 }: 8 10 9 11 buildGoModule rec { 10 12 pname = "ov"; 11 - version = "0.23.0"; 13 + version = "0.30.0"; 12 14 13 15 src = fetchFromGitHub { 14 16 owner = "noborus"; 15 17 repo = "ov"; 16 18 rev = "refs/tags/v${version}"; 17 - hash = "sha256-zIPJvlzq9N5sjc7OkdQnxZZYK4RuM6jW4EWLrEzSabg="; 19 + hash = "sha256-xTnUTtMm986MnQEKgExWfABU8E8C+ZiRZvOpg3FY5cY="; 18 20 }; 19 21 20 22 vendorHash = "sha256-bQREazHu0SQrMKyNPtUvzeKR/zb0FJOLpHBwHml43Hs="; 21 23 22 24 ldflags = [ 23 - "-X main.Version=v${version}" 24 - "-X main.Revision=${src.rev}" 25 + "-s" 26 + "-w" 27 + "-X=main.Version=v${version}" 28 + "-X=main.Revision=${src.rev}" 25 29 ]; 26 30 27 31 subPackages = [ "." ]; ··· 50 54 cp $src/ov.yaml $doc/share/$name/sample-config.yaml 51 55 ''; 52 56 57 + passthru.tests = { 58 + version = testers.testVersion { 59 + package = ov; 60 + version = "v${version}"; 61 + }; 62 + }; 63 + 53 64 meta = with lib; { 54 65 description = "Feature-rich terminal-based text viewer"; 55 66 homepage = "https://noborus.github.io/ov"; 67 + changelog = "https://github.com/noborus/ov/releases/tag/v${version}"; 56 68 license = licenses.mit; 57 - platforms = platforms.linux ++ platforms.darwin; 58 - maintainers = with maintainers; [ farcaller ]; 69 + maintainers = with maintainers; [ farcaller figsoda ]; 59 70 }; 60 71 }