about summary refs log tree commit diff stats
path: root/pkgs/by-name/tr/tree-sitter-yts/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/tr/tree-sitter-yts/package.nix')
-rw-r--r--pkgs/by-name/tr/tree-sitter-yts/package.nix15
1 files changed, 3 insertions, 12 deletions
diff --git a/pkgs/by-name/tr/tree-sitter-yts/package.nix b/pkgs/by-name/tr/tree-sitter-yts/package.nix
index 11ab5a8d..3a97530d 100644
--- a/pkgs/by-name/tr/tree-sitter-yts/package.nix
+++ b/pkgs/by-name/tr/tree-sitter-yts/package.nix
@@ -1,25 +1,16 @@
 # taken from nixpgks: pkgs/development/tools/parsing/tree-sitter/grammar.nix
 {
+  yt,
   stdenv,
   nodejs,
   tree-sitter,
-  lib,
 }:
-# # Build a parser grammar and put the resulting shared object in `$out/parser`
-# {
-#   # language name
-#   language ? "yts",
-#   version ? "1.0.0",
-#   src ? ./.,
-#   location ? null,
-#   generate ? false,
-#   ...
-# } @ args:
 stdenv.mkDerivation {
   pname = "yts-grammar";
   version = "1.0.0";
 
-  src = ./.;
+  inherit (yt) src;
+  sourceRoot = "yt/tree-sitter-yts";
 
   nativeBuildInputs = [nodejs tree-sitter];