3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/backup/chunksync/default.nix

33 lines
709 B
Nix
Raw Normal View History

2013-12-30 13:21:52 +00:00
{ stdenv, fetchurl, openssl, perl }:
stdenv.mkDerivation rec {
version = "0.4";
pname = "chunksync";
2013-12-30 13:21:52 +00:00
src = fetchurl {
url = "https://chunksync.florz.de/chunksync_${version}.tar.gz";
sha256 = "1gwqp1kjwhcmwhynilakhzpzgc0c6kk8c9vkpi30gwwrwpz3cf00";
2013-12-30 13:21:52 +00:00
};
buildInputs = [openssl perl];
NIX_LDFLAGS = "-lgcc_s";
2013-12-30 13:21:52 +00:00
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 = stdenv.lib.licenses.gpl2;
2013-12-30 13:21:52 +00:00
platforms = with stdenv.lib.platforms; linux;
};
}