about summary refs log tree commit diff stats
path: root/pkgs/by-name/tr/tree-sitter-yts/package.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-11-04 21:32:30 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-11-04 21:38:32 +0100
commit8403d1f9d7c806fcc1b7aa8f0e0954051b617193 (patch)
treedb104d446d830d77728ddd755214d437181171e5 /pkgs/by-name/tr/tree-sitter-yts/package.nix
parentfix(modules/less/command.less): Improve keymappings (diff)
downloadnixos-config-8403d1f9d7c806fcc1b7aa8f0e0954051b617193.tar.gz
nixos-config-8403d1f9d7c806fcc1b7aa8f0e0954051b617193.zip
refactor(pkgs/tree-sitter-yts): Move to `yt`
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];