2020-05-15 21:57:56 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub, libsass }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "hugo";
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "0.71.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
buildInputs = [ libsass ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gohugoio";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-05-29 06:06:01 +00:00
|
|
|
sha256 = "0kx3q2i5p8k1dfkh02ns5ns97aqqvdcs0kx4bl9d38jk3lw3jrgh";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
golibsass = fetchFromGitHub {
|
|
|
|
owner = "bep";
|
|
|
|
repo = "golibsass";
|
|
|
|
rev = "8a04397f0baba474190a9f58019ff499ec43057a";
|
|
|
|
sha256 = "0xk3m2ynbydzx87dz573ihwc4ryq0r545vz937szz175ivgfrhh3";
|
|
|
|
};
|
|
|
|
|
|
|
|
overrideModAttrs = (_: {
|
|
|
|
postBuild = ''
|
|
|
|
rm -rf vendor/github.com/bep/golibsass/
|
|
|
|
cp -r --reflink=auto ${golibsass} vendor/github.com/bep/golibsass
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
vendorSha256 = "1fz1wvw0jy3rj6pl1w6vpr0xr1v8pnpf76bwdalacqy6r85lxmkl";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|