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