dar: cleanup

This commit is contained in:
Atemu 2022-11-21 17:59:00 +01:00 committed by Rick van Schijndel
parent 58710ad37d
commit 5b2d084e4d

View file

@ -7,8 +7,6 @@ args @ { lib, stdenv, llvmPackages_12, fetchurl
, CoreFoundation
}:
with lib;
let
# Fails to build with clang-11 on Darwin:
# error: exception specification of overriding function is more lax than base version
@ -32,10 +30,10 @@ stdenv.mkDerivation rec {
curl librsync libthreadar
gpgme libargon2 libgcrypt openssl
bzip2 lz4 lzo xz zlib
] ++ optionals stdenv.isLinux [
] ++ lib.optionals stdenv.isLinux [
attr
e2fsprogs
] ++ optionals stdenv.isDarwin [
] ++ lib.optionals stdenv.isDarwin [
CoreFoundation
];
@ -47,20 +45,20 @@ stdenv.mkDerivation rec {
"--enable-threadar"
];
hardeningDisable = [ "format" ];
enableParallelBuilding = true;
postInstall = ''
# Disable html help
rm -r "$out"/share/dar
'';
enableParallelBuilding = true;
hardeningDisable = [ "format" ];
meta = {
meta = with lib; {
homepage = "http://dar.linux.free.fr";
description = "Disk ARchiver, allows backing up files into indexed archives";
maintainers = with maintainers; [ izorkin ];
license = licenses.gpl2;
license = licenses.gpl2Only;
platforms = platforms.unix;
};
}