nixpkgs/pkgs/tools/backup/dar/default.nix
2019-02-28 16:24:46 +01:00

40 lines
940 B
Nix

{ stdenv, fetchurl, zlib, bzip2, openssl, attr, lzo, libgcrypt, e2fsprogs, gpgme, xz }:
with stdenv.lib;
stdenv.mkDerivation rec {
version = "2.6.2";
name = "dar-${version}";
src = fetchurl {
url = "mirror://sourceforge/dar/${name}.tar.gz";
sha256 = "0bjrv6pxrzmb4d09yikl5wg6hz3llc30xl0ldzik4jzjrr8bcfpn";
};
buildInputs = [ zlib bzip2 openssl lzo libgcrypt gpgme xz ]
++ optionals stdenv.isLinux [ attr e2fsprogs ];
configureFlags = [
"--disable-birthtime"
"--disable-upx"
"--disable-dar-static"
"--disable-build-html"
"--enable-threadar"
];
postInstall = ''
rm -r "$out"/share/dar # Disable html help
'';
enableParallelBuilding = true;
hardeningDisable = [ "format" ];
meta = {
homepage = http://dar.linux.free.fr;
description = "Disk ARchiver, allows backing up files into indexed archives";
license = licenses.gpl2;
platforms = platforms.unix;
};
}