From 58710ad37d50b420654bb3d1ce50adffe643a6e4 Mon Sep 17 00:00:00 2001 From: Atemu Date: Tue, 22 Nov 2022 06:55:49 +0100 Subject: [PATCH] dar: use llvmPackages_12 rather than gcc on Darwin As pointed out by @wegank in https://github.com/NixOS/nixpkgs/pull/202218#issuecomment-1322708760, a newer clang also works. --- pkgs/tools/backup/dar/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/backup/dar/default.nix b/pkgs/tools/backup/dar/default.nix index 3652529805c6..2ee7331a7338 100644 --- a/pkgs/tools/backup/dar/default.nix +++ b/pkgs/tools/backup/dar/default.nix @@ -1,4 +1,4 @@ -{ lib, gccStdenv, fetchurl +args @ { lib, stdenv, llvmPackages_12, fetchurl , which , attr, e2fsprogs , curl, libargon2, librsync, libthreadar @@ -10,9 +10,9 @@ with lib; let - # Fails to build with clang on Darwin: + # Fails to build with clang-11 on Darwin: # error: exception specification of overriding function is more lax than base version - stdenv = gccStdenv; + stdenv = if args.stdenv.isDarwin then llvmPackages_12.stdenv else args.stdenv; in stdenv.mkDerivation rec {