2023-11-16 04:20:00 +00:00
|
|
|
{
|
2022-12-02 08:20:57 +00:00
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchzip,
|
|
|
|
which,
|
|
|
|
attr,
|
|
|
|
e2fsprogs,
|
|
|
|
curl,
|
|
|
|
libargon2,
|
|
|
|
librsync,
|
|
|
|
libthreadar,
|
|
|
|
gpgme,
|
|
|
|
libgcrypt,
|
|
|
|
openssl,
|
|
|
|
bzip2,
|
|
|
|
lz4,
|
|
|
|
lzo,
|
|
|
|
xz,
|
|
|
|
zlib,
|
2023-02-22 10:55:15 +00:00
|
|
|
zstd,
|
2022-12-02 08:20:57 +00:00
|
|
|
CoreFoundation,
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.7.13";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "dar";
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
src = fetchzip {
|
2020-04-24 23:36:52 +00:00
|
|
|
url = "mirror://sourceforge/dar/${pname}-${version}.tar.gz";
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-d88BwbovhbAn72y5pVd4No+hVydXbtZYHZpdtpo4RGY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
nativeBuildInputs = [ which ];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
buildInputs = [
|
2022-12-02 08:20:57 +00:00
|
|
|
curl
|
|
|
|
librsync
|
|
|
|
libthreadar
|
|
|
|
gpgme
|
|
|
|
libargon2
|
|
|
|
libgcrypt
|
|
|
|
openssl
|
|
|
|
bzip2
|
|
|
|
lz4
|
|
|
|
lzo
|
|
|
|
xz
|
|
|
|
zlib
|
2023-02-22 10:55:15 +00:00
|
|
|
zstd
|
2022-12-02 08:20:57 +00:00
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
2022-11-27 09:42:12 +00:00
|
|
|
attr
|
|
|
|
e2fsprogs
|
2022-12-02 08:20:57 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2022-11-27 09:42:12 +00:00
|
|
|
CoreFoundation
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--disable-birthtime"
|
|
|
|
"--disable-upx"
|
|
|
|
"--disable-dar-static"
|
|
|
|
"--disable-build-html"
|
|
|
|
"--enable-threadar"
|
|
|
|
];
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
|
|
'';
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
2022-12-02 08:20:57 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|