2024-04-21 15:54:59 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch } :
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "2.5.2";
|
|
|
|
pname = "afio";
|
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kholtman";
|
|
|
|
repo = "afio";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1vbxl66r5rp5a1qssjrkfsjqjjgld1cq57c871gd0m4qiq9rmcfy";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
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=";
|
|
|
|
})
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
|
|
|
|
meta = {
|
2020-05-03 17:38:23 +00:00
|
|
|
homepage = "https://github.com/kholtman/afio";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Fault tolerant cpio archiver targeting backups";
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.free;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "afio";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|