2020-03-27 07:33:21 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-04-14 03:09:09 +01:00
|
|
|
|
2019-11-14 14:21:58 +00:00
|
|
|
buildGoModule rec {
|
2019-04-14 03:09:09 +01:00
|
|
|
pname = "mkcert";
|
2019-11-14 14:21:58 +00:00
|
|
|
version = "1.4.1";
|
2019-04-14 03:09:09 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FiloSottile";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-11-14 14:21:58 +00:00
|
|
|
sha256 = "0w1ji96hbd3anzsz82xjcafsqhgyz7c7n41rsq60yrllwbj5946f";
|
2019-04-14 03:09:09 +01:00
|
|
|
};
|
|
|
|
|
2019-11-14 14:21:58 +00:00
|
|
|
modSha256 = "13a3snhcqq3a9lfy9zfr2rx10mf2ymvhmds1bg8n4m7lbwnzm4fg";
|
|
|
|
|
2019-09-21 10:25:00 +01:00
|
|
|
goPackagePath = "github.com/FiloSottile/mkcert";
|
2019-11-14 14:21:58 +00:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X ${goPackagePath}/main.Version=${version}
|
|
|
|
'';
|
2019-04-14 03:09:09 +01:00
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2019-04-14 03:09:09 +01:00
|
|
|
homepage = https://github.com/FiloSottile/mkcert;
|
|
|
|
description = "A simple tool for making locally-trusted development certificates";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|