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

                                   
                          
                        
                                                                       

                         
                      

                             
                                                                    


                                          
                                     


                                                                       
                                                            




                                         
{ lib, fetchFromGitHub, rustPlatform, pkg-config, openssl, systemd }:

rustPlatform.buildRustPackage rec {
  pname = "journaldriver";
  version     = "1.1.0";
  cargoSha256 = "1gzfwkcm63fn41jls16c5sqxz28b0hrfpjhwsvvbwcfv40qxjhsg";

  src = fetchFromGitHub {
    owner  = "tazjin";
    repo   = "journaldriver";
    rev    = "v${version}";
    sha256 = "0672iq6s9klb1p37hciyl7snbjgjw98kwrbfkypv07lplc5qcnrf";
  };

  buildInputs       = [ openssl systemd ];
  nativeBuildInputs = [ pkg-config ];

  meta = with lib; {
    description = "Log forwarder from journald to Stackdriver Logging";
    homepage    = "https://github.com/tazjin/journaldriver";
    license     = licenses.gpl3;
    maintainers = [ maintainers.tazjin ];
    platforms   = platforms.linux;
  };
}