about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/backup/chunksync/default.nix
blob: 2bab8d5ea22e6a87f9e0fc0882cf86ba94e3d02f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, stdenv, fetchurl, openssl, perl }:

stdenv.mkDerivation rec {
  version = "0.4";
  pname = "chunksync";

  src = fetchurl {
    url = "https://chunksync.florz.de/chunksync_${version}.tar.gz";
    sha256 = "1gwqp1kjwhcmwhynilakhzpzgc0c6kk8c9vkpi30gwwrwpz3cf00";
  };

  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 = lib.licenses.gpl2;
    platforms = with lib.platforms; linux;
  };
}