Unverified Commit 6b866a5e authored by Arnout Engelen's avatar Arnout Engelen Committed by GitHub
Browse files

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

hugo: add version test
parents e0b050e1 baa3beee
Loading
Loading
Loading
Loading
+15 −1
Original line number Diff line number Diff line
{ stdenv, lib, buildGoModule, fetchFromGitHub, installShellFiles, buildPackages }:
{ stdenv
, lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
, buildPackages
, testers
, hugo
}:

buildGoModule rec {
  pname = "hugo";
@@ -34,6 +42,12 @@ buildGoModule rec {
      --zsh  <(${emulator} $out/bin/hugo completion zsh)
  '';

  passthru.tests.version = testers.testVersion {
    package = hugo;
    command = "hugo version";
    version = "v${version}";
  };

  meta = with lib; {
    description = "A fast and modern static website engine";
    homepage = "https://gohugo.io";