Skip to content

Commit

Permalink
texmacs: Use LLVM 17 on Darwin
Browse files Browse the repository at this point in the history
The current nixos-unstable branches uses Clang 19.1.5 on Darwin per default.
This results in compilation error
"/tmp/nix-build-texmacs-2.1.4.drv-0/TeXmacs/src/Kernel/Containers/hashtree.cpp:97:14:
error: no member named 'contains' in 'hashtree<K, V>'".
  • Loading branch information
lions-tech committed Jan 12, 2025
1 parent 26405f7 commit 6e3bc7b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/applications/editors/texmacs/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
lib,
stdenv,
llvmPackages_17,
callPackage,
fetchurl,
guile_1_8,
Expand Down Expand Up @@ -40,7 +41,11 @@ let
tex = texliveSmall;
};
in
stdenv.mkDerivation {
(
if stdenv.hostPlatform.isDarwin
then llvmPackages_17.stdenv
else stdenv
).mkDerivation {
inherit pname version;

src = fetchurl {
Expand Down

0 comments on commit 6e3bc7b

Please sign in to comment.