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

                         
                        
                      
                 
                                                                    

    
                                                                     
 

                                                                      
                           
                                                 
                                                                                      
                                         


                             
{ stdenv, buildGoModule, fetchFromGitHub, CoreServices }:

buildGoModule rec {
  pname = "sops";
  version = "3.5.0";

  src = fetchFromGitHub {
    rev = "v${version}";
    owner = "mozilla";
    repo = pname;
    sha256 = "1515bk0fl0pvdkp402l51gdg63bmqlh89sglss6prc1qqvv5v2xy";
  };

  modSha256 = "0vhxd3dschj5i9sig6vpxzbl59cas1qa843akzmjnfjrrafb916y";

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

  meta = with stdenv.lib; {
    homepage = "https://github.com/mozilla/sops";
    description = "Mozilla sops (Secrets OPerationS) is an editor of encrypted files";
    maintainers = [ maintainers.marsam ];
    license = licenses.mpl20;
  };
}