diff --git a/pkgs/by-name/sv/sv-lang/package.nix b/pkgs/by-name/sv/sv-lang/package.nix index 2f49a2bbbead..91c2b1383460 100644 --- a/pkgs/by-name/sv/sv-lang/package.nix +++ b/pkgs/by-name/sv/sv-lang/package.nix @@ -7,6 +7,7 @@ cmake, ninja, fmt, + llvmPackages, mimalloc, python3, }: @@ -36,6 +37,10 @@ stdenv.mkDerivation (finalAttrs: { cmake python3 ninja + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # needs the wrapped clang-scan-deps to find the C++20 module headers + llvmPackages.clang-tools ]; strictDeps = true; @@ -48,17 +53,17 @@ stdenv.mkDerivation (finalAttrs: { catch2_3 ]; - # TODO: a mysterious linker error occurs when building the unittests on darwin. - # The error occurs when using catch2_3 in nixpkgs, not when fetching catch2_3 using CMake - doCheck = !stdenv.hostPlatform.isDarwin; + doCheck = true; meta = { description = "SystemVerilog compiler and language services"; homepage = "https://github.com/MikePopoloski/slang"; license = lib.licenses.mit; - maintainers = with lib.maintainers; [ sharzy ]; + maintainers = with lib.maintainers; [ + sharzy + carlossless + ]; mainProgram = "slang"; platforms = lib.platforms.all; - broken = stdenv.hostPlatform.isDarwin; }; })