2016-04-17 01:21:13 +01:00
|
|
|
{ stdenv, fetchurl, zlib, bzip2, openssl, attr, lzo, libgcrypt, e2fsprogs, gpgme, xz }:
|
2009-01-03 15:11:52 +00:00
|
|
|
|
2017-03-24 21:06:41 +00:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2009-12-17 08:08:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-01-15 08:14:12 +00:00
|
|
|
version = "2.6.7";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "dar";
|
2016-04-17 01:21:13 +01:00
|
|
|
|
2009-01-03 15:11:52 +00:00
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/dar/${pname}-${version}.tar.gz";
|
2020-01-15 08:14:12 +00:00
|
|
|
sha256 = "055kkxhg7sz3fbndsr4p2wp7aa2phq3pr0a9y7b1fkg52x7fbhr2";
|
2009-01-03 15:11:52 +00:00
|
|
|
};
|
|
|
|
|
2016-04-17 01:21:13 +01:00
|
|
|
buildInputs = [ zlib bzip2 openssl lzo libgcrypt gpgme xz ]
|
2017-03-24 21:06:41 +00:00
|
|
|
++ optionals stdenv.isLinux [ attr e2fsprogs ];
|
2010-07-21 16:30:25 +01:00
|
|
|
|
2018-07-12 15:41:41 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--disable-birthtime"
|
|
|
|
"--disable-upx"
|
|
|
|
"--disable-dar-static"
|
|
|
|
"--disable-build-html"
|
|
|
|
"--enable-threadar"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
rm -r "$out"/share/dar # Disable html help
|
|
|
|
'';
|
2016-04-17 01:21:13 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2009-12-17 08:08:17 +00:00
|
|
|
|
2016-05-09 23:06:58 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2009-01-03 15:11:52 +00:00
|
|
|
meta = {
|
2018-07-12 15:41:41 +01:00
|
|
|
homepage = http://dar.linux.free.fr;
|
2010-07-21 16:30:25 +01:00
|
|
|
description = "Disk ARchiver, allows backing up files into indexed archives";
|
2018-09-11 22:54:23 +01:00
|
|
|
license = licenses.gpl2;
|
2017-03-24 21:06:41 +00:00
|
|
|
platforms = platforms.unix;
|
2009-01-03 15:11:52 +00:00
|
|
|
};
|
|
|
|
}
|