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



                         
                                                                    

    

                                         
 
                                                          
 
                           
                                                
                                 
                                                                       
                               

    
{ stdenv, fetchFromGitHub, cmake, perl, zlib, bzip2, popt }:

stdenv.mkDerivation rec {
  pname = "librsync";
  version = "2.2.1";

  src = fetchFromGitHub {
    owner = "librsync";
    repo = "librsync";
    rev = "v${version}";
    sha256 = "08wdlxsa9zg2pyasz1lwg70d5psi4amv81v4yxwffx67ndzb9yp5";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ perl zlib bzip2 popt ];

  dontStrip = stdenv.hostPlatform != stdenv.buildPlatform;

  meta = with stdenv.lib; {
    homepage = http://librsync.sourceforge.net/;
    license = licenses.lgpl2Plus;
    description = "Implementation of the rsync remote-delta algorithm";
    platforms = platforms.unix;
  };
}