2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2022-01-07 12:52:38 +00:00
|
|
|
, which
|
2020-08-27 16:12:34 +01:00
|
|
|
, attr, e2fsprogs
|
2022-01-07 12:52:38 +00:00
|
|
|
, curl, libargon2, librsync, libthreadar
|
2020-08-27 16:12:34 +01:00
|
|
|
, gpgme, libgcrypt, openssl
|
2022-01-07 12:52:38 +00:00
|
|
|
, bzip2, lz4, lzo, xz, zlib
|
2020-08-27 16:12:34 +01:00
|
|
|
}:
|
2009-01-03 15:11:52 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
with lib;
|
2017-03-24 21:06:41 +00:00
|
|
|
|
2009-12-17 08:08:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-06-25 15:34:11 +01:00
|
|
|
version = "2.7.6";
|
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";
|
2022-06-25 15:34:11 +01:00
|
|
|
sha256 = "sha256-PV5ESJE1B2gQnX6QUeJgOb3rkG3jApTn4NcRBbh9bao=";
|
2009-01-03 15:11:52 +00:00
|
|
|
};
|
|
|
|
|
2020-08-27 16:12:34 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2022-01-07 12:52:38 +00:00
|
|
|
nativeBuildInputs = [ which ];
|
|
|
|
|
2020-08-27 16:12:34 +01:00
|
|
|
buildInputs = [
|
|
|
|
curl librsync libthreadar
|
2022-01-07 12:52:38 +00:00
|
|
|
gpgme libargon2 libgcrypt openssl
|
|
|
|
bzip2 lz4 lzo xz zlib
|
2020-08-27 16:12:34 +01: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 = ''
|
2020-08-27 16:12:34 +01:00
|
|
|
# Disable html help
|
|
|
|
rm -r "$out"/share/dar
|
2018-07-12 15:41:41 +01:00
|
|
|
'';
|
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 = {
|
2022-05-28 14:22:26 +01:00
|
|
|
broken = stdenv.isDarwin;
|
2020-03-24 04:25:18 +00: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";
|
2020-08-27 16:12:34 +01:00
|
|
|
maintainers = with maintainers; [ izorkin ];
|
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
|
|
|
};
|
|
|
|
}
|