3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/backup/chunksync/default.nix
Moritz Heidkamp 482d87a9b0 Set chunksync package's NIX_LDFLAGS to "-lgcc_s"
This works around the pthread_cancel issue
2014-01-02 18:28:13 +00:00

33 lines
713 B
Nix

{ stdenv, fetchurl, openssl, perl }:
stdenv.mkDerivation rec {
version = "0.3";
name = "chunksync-${version}";
src = fetchurl {
url = "http://chunksync.florz.de/chunksync_${version}.tar.gz";
sha256 = "e0c27f925c5cf811798466312a56772864b633728c433fb2fcce23c8712b52fc";
};
buildInputs = [openssl perl];
NIX_LDFLAGS = "-lgcc_s";
makeFlags = [
"DESTDIR=$(out)"
"PREFIX="
];
preInstall = ''
mkdir -p $out/bin
mkdir -p $out/share/man/man1
'';
meta = {
description = "Space-efficient incremental backups of large files or block devices";
homepage = "http://chunksync.florz.de/";
license = "GPLv2";
platforms = with stdenv.lib.platforms; linux;
};
}