mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
Merge pull request #238722 from raboof/hugo-test-version
hugo: add version test
This commit is contained in:
commit
6b866a5e5f
@ -1,4 +1,12 @@
|
|||||||
{ stdenv, lib, buildGoModule, fetchFromGitHub, installShellFiles, buildPackages }:
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, buildGoModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
, installShellFiles
|
||||||
|
, buildPackages
|
||||||
|
, testers
|
||||||
|
, hugo
|
||||||
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "hugo";
|
pname = "hugo";
|
||||||
@ -34,6 +42,12 @@ buildGoModule rec {
|
|||||||
--zsh <(${emulator} $out/bin/hugo completion zsh)
|
--zsh <(${emulator} $out/bin/hugo completion zsh)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests.version = testers.testVersion {
|
||||||
|
package = hugo;
|
||||||
|
command = "hugo version";
|
||||||
|
version = "v${version}";
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A fast and modern static website engine";
|
description = "A fast and modern static website engine";
|
||||||
homepage = "https://gohugo.io";
|
homepage = "https://gohugo.io";
|
||||||
|
Loading…
Reference in New Issue
Block a user