dar: fix build on darwin

This commit is contained in:
Weijia Wang 2023-11-03 00:14:00 +01:00
parent b1b0b6e3e7
commit 9cae443aea

View File

@ -1,7 +1,6 @@
args @ {
{
lib,
stdenv,
llvmPackages_12, # Anything newer than 11
fetchzip,
which,
attr,
@ -22,12 +21,6 @@ args @ {
CoreFoundation,
}:
let
# Fails to build with clang-11 on Darwin:
# error: exception specification of overriding function is more lax than base version
stdenv = if args.stdenv.isDarwin then llvmPackages_12.stdenv else args.stdenv;
in
stdenv.mkDerivation rec {
version = "2.7.13";
pname = "dar";