diff --git a/pkgs/tools/backup/dar/default.nix b/pkgs/tools/backup/dar/default.nix index 2ee7331a7338..b6d11d4cda52 100644 --- a/pkgs/tools/backup/dar/default.nix +++ b/pkgs/tools/backup/dar/default.nix @@ -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; }; }