25 lines
569 B
Nix
25 lines
569 B
Nix
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
name = "hugo-${version}";
|
|
version = "0.20.1";
|
|
|
|
goPackagePath = "github.com/spf13/hugo";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "spf13";
|
|
repo = "hugo";
|
|
rev = "v${version}";
|
|
sha256 = "1mxg9mp98n32q1qsqd9f9izsq1s18a7jsw8gcyh9vbspdnyghb7q";
|
|
};
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
meta = {
|
|
description = "A fast and modern static website engine.";
|
|
homepage = https://gohugo.io;
|
|
maintainers = with stdenv.lib.maintainers; [ schneefux ];
|
|
license = stdenv.lib.licenses.asl20;
|
|
};
|
|
}
|