17 src = fetchFromGitHub {
20 rev = "refs/tags/v${version}";
21 hash = "sha256-NluV9/tqWTRfs2u9g4cHC1TyrxOXx3ghOZ4GDx7OZFo=";
24 vendorHash = "sha256-KqDsa7MlSONyn7AYOepQ95q1CEM83AhWk23iYSQ4twU=";
30 tags = [ "extended" ];
32 subPackages = [ "." ];
34 nativeBuildInputs = [ installShellFiles ];
39 "-X github.com/gohugoio/hugo/common/hugo.vendorInfo=nixpkgs"
44 emulator = stdenv.hostPlatform.emulator buildPackages;
47 ${emulator} $out/bin/hugo gen man
49 installShellCompletion --cmd hugo \
50 --bash <(${emulator} $out/bin/hugo completion bash) \
51 --fish <(${emulator} $out/bin/hugo completion fish) \
52 --zsh <(${emulator} $out/bin/hugo completion zsh)
55 passthru.tests.version = testers.testVersion {
57 command = "hugo version";
58 version = "v${version}";
61 passthru.updateScript = nix-update-script { };
64 changelog = "https://github.com/gohugoio/hugo/releases/tag/v${version}";
65 description = "Fast and modern static website engine";
66 homepage = "https://gohugo.io";
67 license = lib.licenses.asl20;
69 maintainers = with lib.maintainers; [