2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "hugo";
|
2020-05-03 17:38:23 +00:00
|
|
|
version = "0.69.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/gohugoio/hugo";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gohugoio";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-05-03 17:38:23 +00:00
|
|
|
sha256 = "0bw31264q8w2r3fm3g2qjh9531nmbn942vl5rjf2cjff25c0d4ji";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
modSha256 = "1i1mw8jcklmnsqawc1jkgw4h1dxjxb9zaf2p8pgfzxzpy5cp6qkl";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildFlags = [ "-tags" "extended" ];
|
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A fast and modern static website engine.";
|
|
|
|
homepage = "https://gohugo.io";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ schneefux filalex77 Frostman ];
|
|
|
|
};
|
|
|
|
}
|