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