summary refs log blame commit diff
path: root/pkgs/development/tools/misc/mkcert/default.nix
blob: 6a114a8de8ba22e67a20fe1e29388942a982697f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                     
 
                   
                   
                    




                          
                                                                    

    

                                                                     
                                                  



                                                 
 


                                                                  





                                                                                      
{ stdenv, buildGoModule, fetchFromGitHub, Security }:

buildGoModule rec {
  pname = "mkcert";
  version = "1.4.1";

  src = fetchFromGitHub {
    owner = "FiloSottile";
    repo = pname;
    rev = "v${version}";
    sha256 = "0w1ji96hbd3anzsz82xjcafsqhgyz7c7n41rsq60yrllwbj5946f";
  };

  modSha256 = "13a3snhcqq3a9lfy9zfr2rx10mf2ymvhmds1bg8n4m7lbwnzm4fg";

  goPackagePath = "github.com/FiloSottile/mkcert";
  buildFlagsArray = ''
    -ldflags=
      -X ${goPackagePath}/main.Version=${version}
  '';

  buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];

  meta = with stdenv.lib; {
    homepage = https://github.com/FiloSottile/mkcert;
    description = "A simple tool for making locally-trusted development certificates";
    license = licenses.bsd3;
    maintainers = [ maintainers.marsam ];
  };
}