nixpkgs/pkgs/development/tools/misc/mkcert/default.nix

29 lines
688 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2019-04-14 02:09:09 +00:00
buildGoModule rec {
2019-04-14 02:09:09 +00:00
pname = "mkcert";
version = "1.4.2";
2019-04-14 02:09:09 +00:00
src = fetchFromGitHub {
owner = "FiloSottile";
repo = pname;
rev = "v${version}";
sha256 = "0g85vpkfgkc7nzjl3asl2f4ncsh12naf2fkr0mvyihfmfy9fz0fw";
2019-04-14 02:09:09 +00:00
};
vendorSha256 = "0b8ggdpbyxx5n2myhchhlwmm5nndwpykp1ylnzdyw12mdskfvn9h";
doCheck = false;
buildFlagsArray = ''
-ldflags=-s -w -X main.Version=v${version}
'';
2019-04-14 02:09:09 +00:00
meta = with lib; {
homepage = "https://github.com/FiloSottile/mkcert";
2019-04-14 02:09:09 +00:00
description = "A simple tool for making locally-trusted development certificates";
license = licenses.bsd3;
maintainers = [ maintainers.marsam ];
};
}