Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / librsync / default.nix
blob5139c397de3a3f0fc0eea2bb053df53a54ecf76b
1 { lib, stdenv, fetchFromGitHub, cmake, perl, zlib, bzip2, popt }:
3 stdenv.mkDerivation rec {
4   pname = "librsync";
5   version = "2.3.4";
7   src = fetchFromGitHub {
8     owner = "librsync";
9     repo = "librsync";
10     rev = "v${version}";
11     sha256 = "sha256-fiOby8tOhv0KJ+ZwAWfh/ynqHlYC9kNqKfxNl3IhzR8=";
12   };
14   nativeBuildInputs = [ cmake ];
15   buildInputs = [ perl zlib bzip2 popt ];
17   dontStrip = stdenv.hostPlatform != stdenv.buildPlatform;
19   meta = with lib; {
20     description = "Implementation of the rsync remote-delta algorithm";
21     homepage = "https://librsync.sourceforge.net/";
22     changelog = "https://github.com/librsync/librsync/releases/tag/v${version}";
23     license = licenses.lgpl2Plus;
24     mainProgram = "rdiff";
25     platforms = platforms.unix;
26   };