1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 15:15:36 +00:00
nixpkgs/pkgs/development/libraries/librsync/default.nix
Mitch Tishmack 01fe47c78b librsync needs --std=gnu89 due to use of inline, fixes #11211
Without this, if compiled with clang, all static functions do not end
up in the resultant shared library due to clang defaulting to c99.

The simple fix is to adjust CFLAGS, otherwise one needs to patch
a lot of inline's away needlessly.
2015-11-30 14:43:07 +01:00

32 lines
814 B
Nix

{ stdenv, fetchFromGitHub, autoreconfHook, perl, zlib, bzip2, popt }:
stdenv.mkDerivation rec {
name = "librsync-${version}";
version = "1.0.0";
src = fetchFromGitHub {
owner = "librsync";
repo = "librsync";
rev = "v${version}";
sha256 = "0rc2pksdd0mhdvk8y1yix71rf19wdx1lb2ryrkhi7vcy240rvgvc";
};
buildInputs = [ autoreconfHook perl zlib bzip2 popt ];
configureFlags = if stdenv.isCygwin then "--enable-static" else "--enable-shared";
CFLAGS = "-std=gnu89";
crossAttrs = {
dontStrip = true;
};
meta = with stdenv.lib; {
homepage = http://librsync.sourceforge.net/;
license = licenses.lgpl2Plus;
description = "Implementation of the rsync remote-delta algorithm";
platforms = platforms.unix;
maintainers = with maintainers; [ wkennington ];
};
}