nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchFromGitHub, cmake, perl, zlib, bzip2, popt }:
2
3stdenv.mkDerivation rec {
4 pname = "librsync";
5 version = "2.3.1";
6
7 src = fetchFromGitHub {
8 owner = "librsync";
9 repo = "librsync";
10 rev = "v${version}";
11 sha256 = "131cd4asmpm4nskidzgiy8xibbnpibvvbq857a0pcky77min5g4z";
12 };
13
14 nativeBuildInputs = [ cmake ];
15 buildInputs = [ perl zlib bzip2 popt ];
16
17 dontStrip = stdenv.hostPlatform != stdenv.buildPlatform;
18
19 meta = with stdenv.lib; {
20 homepage = "http://librsync.sourceforge.net/";
21 license = licenses.lgpl2Plus;
22 description = "Implementation of the rsync remote-delta algorithm";
23 platforms = platforms.unix;
24 };
25}