From ad5e089adc4c2e2a2f2029374a329080acba692b Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Thu, 9 May 2024 00:27:49 +0200 Subject: [PATCH] ci(norg): only use tree-sitter cli on darwin --- nix/overlay.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/nix/overlay.nix b/nix/overlay.nix index d8ee8c5..759a9f1 100644 --- a/nix/overlay.nix +++ b/nix/overlay.nix @@ -191,16 +191,19 @@ # tree-sitter CLI expects to be able to create log files, etc. export HOME=$(realpath .) ''; - buildInputs = with final; [ - clang - tree-sitter - ]; propagatedBuildInputs = [ luarocks-build-treesitter-parser ]; disabled = luaOlder "5.1"; }) {}) .overrideAttrs (oa: { + nativeBuildInputs = + oa.nativeBuildInputs + ++ (with final; + lib.optionals stdenv.isDarwin [ + clang + tree-sitter + ]); fixupPhase = '' if [! -f $out/result/lib/lua/5.1/parser/haskell.so ]; then echo "Build did not create parser/haskell.so in the expected location"