nixpkgs/pkgs/tools/backup/dar/default.nix

40 lines
940 B
Nix
Raw Normal View History

{ stdenv, fetchurl, zlib, bzip2, openssl, attr, lzo, libgcrypt, e2fsprogs, gpgme, xz }:
2017-03-24 22:06:41 +01:00
with stdenv.lib;
stdenv.mkDerivation rec {
version = "2.6.0";
2018-03-12 10:39:47 +01:00
name = "dar-${version}";
src = fetchurl {
2018-07-12 16:41:41 +02:00
url = "mirror://sourceforge/dar/${name}.tar.gz";
sha256 = "0avaffkfrgj8vhvnpqi4s21bsrlxl0xafpyd3v9n3f9hs2gnm3wg";
};
buildInputs = [ zlib bzip2 openssl lzo libgcrypt gpgme xz ]
2017-03-24 22:06:41 +01:00
++ optionals stdenv.isLinux [ attr e2fsprogs ];
2018-07-12 16:41:41 +02: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-10 00:06:58 +02:00
hardeningDisable = [ "format" ];
meta = {
2018-07-12 16:41:41 +02:00
homepage = http://dar.linux.free.fr;
description = "Disk ARchiver, allows backing up files into indexed archives";
2018-09-11 23:54:23 +02:00
license = licenses.gpl2;
2017-03-24 22:06:41 +01:00
platforms = platforms.unix;
};
}