mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
4e6bf03504
treewide: fix buildGoModule packages on darwin
29 lines
722 B
Nix
29 lines
722 B
Nix
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
|
|
|
|
buildGoModule rec {
|
|
pname = "hugo";
|
|
version = "0.68.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gohugoio";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1jdk4mwflxm7n076x4gbqb362z4qriszq8fkc0sjsvd05z613ry6";
|
|
};
|
|
|
|
modSha256 = "04vzm65kbj9905z4cf5yh6yc6g3b0pd5vc00lrxw84pwgqgc0ykb";
|
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
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 ];
|
|
};
|
|
}
|