3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/backup/dar/default.nix

52 lines
1.1 KiB
Nix
Raw Normal View History

2021-01-15 09:19:50 +00:00
{ lib, stdenv, fetchurl
2020-08-27 16:12:34 +01:00
, attr, e2fsprogs
, curl, librsync, libthreadar
, gpgme, libgcrypt, openssl
, bzip2, lzo, xz, zlib
}:
2021-01-15 09:19:50 +00:00
with lib;
2017-03-24 21:06:41 +00:00
stdenv.mkDerivation rec {
2021-05-16 12:40:56 +01:00
version = "2.7.1";
pname = "dar";
src = fetchurl {
url = "mirror://sourceforge/dar/${pname}-${version}.tar.gz";
2021-05-16 12:40:56 +01:00
sha256 = "sha256-dtreitvrgX/8eL9ZLIIASHq1ZQI0z1OVOanLxdNGvu8=";
};
2020-08-27 16:12:34 +01:00
outputs = [ "out" "dev" ];
buildInputs = [
curl librsync libthreadar
gpgme libgcrypt openssl
bzip2 lzo xz zlib
] ++ optionals stdenv.isLinux [ attr e2fsprogs ];
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
'';
enableParallelBuilding = true;
2016-05-09 23:06:58 +01:00
hardeningDisable = [ "format" ];
meta = {
2020-03-24 04:25:18 +00:00
homepage = "http://dar.linux.free.fr";
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;
};
}