From 29e16c62eb8bee4afc05146638f3aa1a94028dac Mon Sep 17 00:00:00 2001 From: Moritz Heidkamp Date: Mon, 30 Dec 2013 14:21:52 +0100 Subject: [PATCH] Add chunksync package --- pkgs/tools/backup/chunksync/default.nix | 30 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/tools/backup/chunksync/default.nix diff --git a/pkgs/tools/backup/chunksync/default.nix b/pkgs/tools/backup/chunksync/default.nix new file mode 100644 index 000000000000..2ef4aa4ff1ff --- /dev/null +++ b/pkgs/tools/backup/chunksync/default.nix @@ -0,0 +1,30 @@ +{ 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]; + + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 07e51de7aa1e..e1cc29ea961a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -660,6 +660,8 @@ let chrony = callPackage ../tools/networking/chrony { }; + chunksync = callPackage ../tools/backup/chunksync { }; + cjdns = callPackage ../tools/networking/cjdns { }; cksfv = callPackage ../tools/networking/cksfv { };