2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2020-09-25 04:45:31 +00:00
|
|
|
, attr, e2fsprogs
|
|
|
|
, curl, librsync, libthreadar
|
|
|
|
, gpgme, libgcrypt, openssl
|
|
|
|
, bzip2, lzo, xz, zlib
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-04-12 18:23:04 +00:00
|
|
|
version = "2.6.14";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "dar";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/dar/${pname}-${version}.tar.gz";
|
2021-04-12 18:23:04 +00:00
|
|
|
sha256 = "sha256-1uzKj+q2klIdANhLzy6TStJzeQndeUvdT0Dzwijad+U=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
curl librsync libthreadar
|
|
|
|
gpgme libgcrypt openssl
|
|
|
|
bzip2 lzo xz zlib
|
|
|
|
] ++ optionals stdenv.isLinux [ attr e2fsprogs ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--disable-birthtime"
|
|
|
|
"--disable-upx"
|
|
|
|
"--disable-dar-static"
|
|
|
|
"--disable-build-html"
|
|
|
|
"--enable-threadar"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
2020-09-25 04:45:31 +00:00
|
|
|
# Disable html help
|
|
|
|
rm -r "$out"/share/dar
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://dar.linux.free.fr";
|
|
|
|
description = "Disk ARchiver, allows backing up files into indexed archives";
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = with maintainers; [ izorkin ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|