-
Notifications
You must be signed in to change notification settings - Fork 0
/
hugo-v0.94.2.nix
39 lines (31 loc) · 922 Bytes
/
hugo-v0.94.2.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
let
pkgs = import <nixpkgs> {};
hugo-0_98_0 = pkgs.buildGoModule {
name = "hugo";
version = "0.94.2";
src = pkgs.fetchFromGitHub {
owner = "gohugoio";
repo = "hugo";
rev = "v0.94.2";
sha256 = "sha256:1pdahyw0addlyl1nq6igbnrvwbkqriy7w1nwhkiz0apj2gi70l3w";
};
vendorSha256 = "sha256-cjpvHIqF106HfNH//ugGkhKLc3k5oT8lAviGPpKKoro=";
doCheck = false;
proxyVendor = true;
tags = [ "extended" ];
nativeBuildInputs = [ pkgs.installShellFiles ];
postInstall = ''
$out/bin/hugo gen man
installManPage man/*
installShellCompletion --cmd hugo \
--bash <($out/bin/hugo gen autocomplete --type=bash) \
--fish <($out/bin/hugo gen autocomplete --type=fish) \
--zsh <($out/bin/hugo gen autocomplete --type=zsh)
'';
};
in pkgs.mkShell rec {
name = "hugo-0.94.2";
buildInputs = with pkgs; [
hugo-0_98_0
];
}