1 { lib, stdenv, fetchFromGitHub, fetchpatch } :
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "1vbxl66r5rp5a1qssjrkfsjqjjgld1cq57c871gd0m4qiq9rmcfy";
16 * A patch to simplify the installation and for removing the
17 * hard coded dependency on GCC.
19 ./0001-makefile-fix-installation.patch
21 # fix darwin build (include headers)
23 url = "https://github.com/kholtman/afio/pull/18/commits/a726614f99913ced08f6ae74091c56969d5db210.patch";
24 name = "darwin-headers.patch";
25 hash = "sha256-pK8mN29fC2mL4B69Fv82dWFIQMGwquyl825OBDTxzpo=";
29 installFlags = [ "DESTDIR=$(out)" ];
32 homepage = "https://github.com/kholtman/afio";
33 description = "Fault tolerant cpio archiver targeting backups";
34 platforms = lib.platforms.all;
36 * Licensing is complicated due to the age of the code base, but
37 * generally free. See the file ``afio_license_issues_v5.txt`` for
38 * a comprehensive discussion.
40 license = lib.licenses.free;