2016-04-17 02:21:13 +02:00
|
|
|
{ stdenv, fetchurl, zlib, bzip2, openssl, attr, lzo, libgcrypt, e2fsprogs, gpgme, xz }:
|
2009-01-03 16:11:52 +01:00
|
|
|
|
2017-03-24 22:06:41 +01:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2009-12-17 09:08:17 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-08-17 21:20:51 +02:00
|
|
|
version = "2.5.16";
|
2018-03-12 10:39:47 +01:00
|
|
|
name = "dar-${version}";
|
2016-04-17 02:21:13 +02:00
|
|
|
|
2009-01-03 16:11:52 +01:00
|
|
|
src = fetchurl {
|
2018-07-12 16:41:41 +02:00
|
|
|
url = "mirror://sourceforge/dar/${name}.tar.gz";
|
2018-08-17 21:20:51 +02:00
|
|
|
sha256 = "0fy39y6kfda0lvbymc0dblvzmli5y9bq81q0r8fwjzd105qwjmz9";
|
2009-01-03 16:11:52 +01:00
|
|
|
};
|
|
|
|
|
2016-04-17 02:21:13 +02:00
|
|
|
buildInputs = [ zlib bzip2 openssl lzo libgcrypt gpgme xz ]
|
2017-03-24 22:06:41 +01:00
|
|
|
++ optionals stdenv.isLinux [ attr e2fsprogs ];
|
2010-07-21 17:30:25 +02:00
|
|
|
|
2018-07-12 16:41:41 +02: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 02:21:13 +02:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2009-12-17 09:08:17 +01:00
|
|
|
|
2016-05-10 00:06:58 +02:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2009-01-03 16:11:52 +01:00
|
|
|
meta = {
|
2018-07-12 16:41:41 +02:00
|
|
|
homepage = http://dar.linux.free.fr;
|
2010-07-21 17:30:25 +02:00
|
|
|
description = "Disk ARchiver, allows backing up files into indexed archives";
|
2018-09-11 23:54:23 +02:00
|
|
|
license = licenses.gpl2;
|
2017-03-24 22:06:41 +01:00
|
|
|
platforms = platforms.unix;
|
2009-01-03 16:11:52 +01:00
|
|
|
};
|
|
|
|
}
|