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

40 lines
942 B
Nix
Raw Normal View History

{ stdenv, fetchurl, zlib, bzip2, openssl, attr, lzo, libgcrypt, e2fsprogs, gpgme, xz }:
2017-03-24 21:06:41 +00:00
with stdenv.lib;
stdenv.mkDerivation rec {
version = "2.6.6";
pname = "dar";
src = fetchurl {
url = "mirror://sourceforge/dar/${pname}-${version}.tar.gz";
sha256 = "1pqdcb9dkjlf8wzpsnx4gcv9nhrm60glv4xadxnknnqlvzs6vips";
};
buildInputs = [ zlib bzip2 openssl lzo libgcrypt gpgme xz ]
2017-03-24 21:06:41 +00:00
++ 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 = ''
rm -r "$out"/share/dar # Disable html help
'';
enableParallelBuilding = true;
2016-05-09 23:06:58 +01:00
hardeningDisable = [ "format" ];
meta = {
2018-07-12 15:41:41 +01:00
homepage = http://dar.linux.free.fr;
description = "Disk ARchiver, allows backing up files into indexed archives";
2018-09-11 22:54:23 +01:00
license = licenses.gpl2;
2017-03-24 21:06:41 +00:00
platforms = platforms.unix;
};
}