Merge pull request #177408 from azahi/minica
commit
788d58aea6
@ -1,33 +1,34 @@ |
|||||||
{ lib, buildGoPackage, fetchFromGitHub }: |
{ lib |
||||||
|
, buildGoModule |
||||||
|
, fetchFromGitHub |
||||||
|
}: |
||||||
|
|
||||||
buildGoPackage rec { |
buildGoModule rec { |
||||||
pname = "minica"; |
pname = "minica"; |
||||||
version = "1.0.2"; |
version = "1.0.2"; |
||||||
|
|
||||||
goPackagePath = "github.com/jsha/minica"; |
|
||||||
|
|
||||||
src = fetchFromGitHub { |
src = fetchFromGitHub { |
||||||
owner = "jsha"; |
owner = "jsha"; |
||||||
repo = "minica"; |
repo = "minica"; |
||||||
rev = "v${version}"; |
rev = "v${version}"; |
||||||
sha256 = "18518wp3dcjhf3mdkg5iwxqr3326n6jwcnqhyibphnb2a58ap7ny"; |
sha256 = "sha256-3p6rUFFiWXhX9BBbxqWxRoyRceexvNnqcFCyNi5HoaA="; |
||||||
}; |
}; |
||||||
|
|
||||||
ldflags = [ |
vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo="; |
||||||
"-X main.BuildVersion=${version}" |
|
||||||
]; |
ldflags = [ "-s" "-w" ]; |
||||||
|
|
||||||
meta = with lib; { |
meta = with lib; { |
||||||
description = "A simple tool for generating self signed certificates"; |
description = "A simple tool for generating self signed certificates"; |
||||||
longDescription = '' |
longDescription = '' |
||||||
Minica is a simple CA intended for use in situations where the CA |
Minica is a simple CA intended for use in situations where the CA operator |
||||||
operator also operates each host where a certificate will be used. It |
also operates each host where a certificate will be used. It automatically |
||||||
automatically generates both a key and a certificate when asked to |
generates both a key and a certificate when asked to produce a |
||||||
produce a certificate. |
certificate. |
||||||
''; |
''; |
||||||
homepage = "https://github.com/jsha/minica/"; |
homepage = "https://github.com/jsha/minica/"; |
||||||
|
changelog = "https://github.com/jsha/minica/releases/tag/${src.rev}"; |
||||||
license = licenses.mit; |
license = licenses.mit; |
||||||
maintainers = with maintainers; [ m1cr0man ]; |
maintainers = with maintainers; [ m1cr0man ]; |
||||||
platforms = platforms.linux ++ platforms.darwin; |
|
||||||
}; |
}; |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue