lol

Merge pull request #238722 from raboof/hugo-test-version

hugo: add version test

authored by

Arnout Engelen and committed by
GitHub
6b866a5e e0b050e1

+15 -1
+15 -1
pkgs/applications/misc/hugo/default.nix
··· 1 - { stdenv, lib, buildGoModule, fetchFromGitHub, installShellFiles, buildPackages }: 1 + { stdenv 2 + , lib 3 + , buildGoModule 4 + , fetchFromGitHub 5 + , installShellFiles 6 + , buildPackages 7 + , testers 8 + , hugo 9 + }: 2 10 3 11 buildGoModule rec { 4 12 pname = "hugo"; ··· 33 41 --fish <(${emulator} $out/bin/hugo completion fish) \ 34 42 --zsh <(${emulator} $out/bin/hugo completion zsh) 35 43 ''; 44 + 45 + passthru.tests.version = testers.testVersion { 46 + package = hugo; 47 + command = "hugo version"; 48 + version = "v${version}"; 49 + }; 36 50 37 51 meta = with lib; { 38 52 description = "A fast and modern static website engine";