1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/tools/backup/dar/default.nix
2021-05-17 15:58:49 -07:00

52 lines
1.1 KiB
Nix

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