blob: 991de700f19d7d80fe99ef2174747fe7521c0d21 (
plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
}:
stdenv.mkDerivation (finalAttrs: {
version = "2.5.2";
pname = "afio";
src = fetchFromGitHub {
owner = "kholtman";
repo = "afio";
tag = "v${finalAttrs.version}";
sha256 = "1vbxl66r5rp5a1qssjrkfsjqjjgld1cq57c871gd0m4qiq9rmcfy";
};
patches = [
/*
A patch to simplify the installation and for removing the
hard coded dependency on GCC.
*/
./0001-makefile-fix-installation.patch
# fix darwin build (include headers)
(fetchpatch {
url = "https://github.com/kholtman/afio/pull/18/commits/a726614f99913ced08f6ae74091c56969d5db210.patch";
name = "darwin-headers.patch";
hash = "sha256-pK8mN29fC2mL4B69Fv82dWFIQMGwquyl825OBDTxzpo=";
})
];
installFlags = [ "DESTDIR=$(out)" ];
meta = {
homepage = "https://github.com/kholtman/afio";
description = "Fault tolerant cpio archiver targeting backups";
platforms = lib.platforms.all;
/*
Licensing is complicated due to the age of the code base, but
generally free. See the file ``afio_license_issues_v5.txt`` for
a comprehensive discussion.
*/
license = lib.licenses.free;
mainProgram = "afio";
};
})
|