diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/librsync')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/librsync/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/librsync/default.nix b/nixpkgs/pkgs/development/libraries/librsync/default.nix new file mode 100644 index 000000000000..a0248e774b7d --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/librsync/default.nix @@ -0,0 +1,25 @@ +{ lib, stdenv, fetchFromGitHub, cmake, perl, zlib, bzip2, popt }: + +stdenv.mkDerivation rec { + pname = "librsync"; + version = "2.3.2"; + + src = fetchFromGitHub { + owner = "librsync"; + repo = "librsync"; + rev = "v${version}"; + sha256 = "sha256-GNwOIZ2UjvsYIthotiPDBrabYzCGFG/YVEbwVa9Nwi4="; + }; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ perl zlib bzip2 popt ]; + + dontStrip = stdenv.hostPlatform != stdenv.buildPlatform; + + meta = with lib; { + homepage = "http://librsync.sourceforge.net/"; + license = licenses.lgpl2Plus; + description = "Implementation of the rsync remote-delta algorithm"; + platforms = platforms.unix; + }; +} |