17 src = fetchFromGitHub {
20 rev = "refs/tags/v${version}";
21 hash = "sha256-UXOZCiwYpMnJsNSO7y3CsB8nmPxtBErYYl8YwWO3Hts=";
24 vendorHash = "sha256-qhiCZMSLRnLbyHplcaPn/BGJ3Lv8O8eEvCuIHwA4sMs=";
35 subPackages = [ "." ];
37 nativeBuildInputs = [ installShellFiles ];
42 "-X github.com/gohugoio/hugo/common/hugo.vendorInfo=nixpkgs"
47 emulator = stdenv.hostPlatform.emulator buildPackages;
50 ${emulator} $out/bin/hugo gen man
52 installShellCompletion --cmd hugo \
53 --bash <(${emulator} $out/bin/hugo completion bash) \
54 --fish <(${emulator} $out/bin/hugo completion fish) \
55 --zsh <(${emulator} $out/bin/hugo completion zsh)
58 passthru.tests.version = testers.testVersion {
60 command = "hugo version";
61 version = "v${version}";
64 passthru.updateScript = nix-update-script { };
67 changelog = "https://github.com/gohugoio/hugo/releases/tag/v${version}";
68 description = "Fast and modern static website engine";
69 homepage = "https://gohugo.io";
70 license = lib.licenses.asl20;
72 maintainers = with lib.maintainers; [