Fil-C on Nix

Filnix wiki

mbrock/filnix

ports/tree-sitter.nix

tree-sitter's CLI is Rust, which has no Fil-C target. Consumers such as Emacs only link the C runtime library, which the Makefile builds on its own. Nixpkgs' passthru stays, so the grammar set and its builders are unchanged.

λlib, stdenv, tree-sitter
stdenv.mkDerivation
11pname=
"tree-sitter"
version src passthru
14makeFlags=
"PREFIX=${placeholder"out"}"

Only the descriptive fields: the rest of the CLI's meta is computed from the Rust build (problems, availability) and does not apply here.

18meta=
lib.filterAttrsname: _: lib.elemname "description" "longDescription" "homepage" "changelog" "license" "maintainers" "teams" "platforms" tree-sitter.meta