summary refs log tree commit diff
path: root/pkgs/tools/backup/btar/default.nix
blob: 841e9ebf6d35e2c461aecff209c723703040371d (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
{ lib, stdenv, fetchurl, fetchpatch, librsync }:

stdenv.mkDerivation rec {
  name = "btar-1.1.1";
  src = fetchurl {
    url = "http://vicerveza.homeunix.net/~viric/soft/btar/${name}.tar.gz";
    sha256 = "0miklk4bqblpyzh1bni4x6lqn88fa8fjn15x1k1n8bxkx60nlymd";
  };

  patches = [
    (fetchpatch {
      url = "https://build.opensuse.org/public/source/openSUSE:Factory/btar/btar-librsync.patch?rev=2";
      sha256 = "1awqny9489vsfffav19s73xxg26m7zrhvsgf1wxb8c2izazwr785";
    })
  ];

  buildInputs = [ librsync ];

  installPhase = "make install PREFIX=$out";

  meta = {
    description = "Tar-compatible block-based archiver";
    license = lib.licenses.gpl3Plus;
    homepage = "http://viric.name/cgi-bin/btar";
    platforms = with lib.platforms; all;
    maintainers = with lib.maintainers; [viric];
  };
}