2020-05-02 22:36:21 +02:00
|
|
|
{ stdenv, fetchFromGitHub } :
|
2017-02-14 22:20:52 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-01-27 21:43:20 +01:00
|
|
|
version = "2.5.2";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "afio";
|
2017-02-14 22:20:52 +01:00
|
|
|
|
2020-05-02 22:36:21 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kholtman";
|
|
|
|
repo = "afio";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1vbxl66r5rp5a1qssjrkfsjqjjgld1cq57c871gd0m4qiq9rmcfy";
|
2017-02-14 22:20:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* A patch to simplify the installation and for removing the
|
|
|
|
* hard coded dependency on GCC.
|
|
|
|
*/
|
2019-01-27 21:43:20 +01:00
|
|
|
patches = [ ./0001-makefile-fix-installation.patch ];
|
2017-02-14 22:20:52 +01:00
|
|
|
|
2019-11-05 02:10:31 +01:00
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
2017-02-14 22:20:52 +01:00
|
|
|
|
|
|
|
meta = {
|
2020-05-02 22:36:21 +02:00
|
|
|
homepage = "https://github.com/kholtman/afio";
|
2017-02-14 22:20:52 +01:00
|
|
|
description = "Fault tolerant cpio archiver targeting backups";
|
|
|
|
platforms = stdenv.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 = stdenv.lib.licenses.free;
|
|
|
|
};
|
|
|
|
}
|