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

                         
                    
                    
 



                         
                                                                   

    
               


                   
                    
                                                                             
                                                    
                                
                                
                                                    

    
{ stdenv, lib, fetchFromGitHub }:

stdenv.mkDerivation rec {
  version = "1.3.3";
  pname = "htpdate";

  src = fetchFromGitHub {
    owner = "twekkel";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-/xZxwEui8V5kyfGsmwRRkiyhj7lcJQaTmOjBihvdWg8=";
  };

  makeFlags = [
    "prefix=$(out)"
  ];

  meta = with lib; {
    description = "Utility to fetch time and set the system clock over HTTP";
    homepage = "https://github.com/twekkel/htpdate";
    platforms = platforms.linux;
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ julienmalka ];
  };
}