Skip to content

Commit

Permalink
ci(norg): only use tree-sitter cli on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed May 8, 2024
1 parent ce13bf1 commit ad5e089
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions nix/overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ad5e089

Please sign in to comment.