aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/tools/security/minica/default.nix
blob: 20ae3878a71fb83dbc452b87b6b04dc0958a0989 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  pname = "minica";
  version = "1.0.2";

  goPackagePath = "github.com/jsha/minica";

  src = fetchFromGitHub {
    owner = "jsha";
    repo = "minica";
    rev = "v${version}";
    sha256 = "18518wp3dcjhf3mdkg5iwxqr3326n6jwcnqhyibphnb2a58ap7ny";
  };

  buildFlagsArray = ''
    -ldflags=
      -X main.BuildVersion=${version}
  '';

  meta = with lib; {
    description = "A simple tool for generating self signed certificates.";
    longDescription = ''
      Minica is a simple CA intended for use in situations where the CA
      operator also operates each host where a certificate will be used. It
      automatically generates both a key and a certificate when asked to
      produce a certificate.
    '';
    homepage = "https://github.com/jsha/minica/";
    license = licenses.mit;
    maintainers = with maintainers; [ m1cr0man ];
    platforms = platforms.linux ++ platforms.darwin;
  };
}