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


                     
                     
 



                          
                                                                    

    
                                                                     
 

                                                                  




                                  
                           






                                                                      
{ stdenv, buildGoModule, fetchFromGitHub, Security }:

buildGoModule rec {
  pname = "conftest";
  version = "0.15.0";

  src = fetchFromGitHub {
    owner = "instrumenta";
    repo = "conftest";
    rev = "v${version}";
    sha256 = "0lb644fj80r4igxbslbd5pksirnyf6slz4yn0mznyx8i2bd1g4ic";
  };

  modSha256 = "1p7fjg1vcrcxb4f5hd00qxx4fqcl051klcjs6ljn4v46qcpn6dcn";

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

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

  meta = with stdenv.lib; {
    description = "Write tests against structured configuration data";
    homepage = https://github.com/instrumenta/conftest;
    license = licenses.asl20;
    maintainers = with maintainers; [ yurrriq ];
    platforms = platforms.all;
  };
}