Skip to content

Commit c114360

Browse files
committed
address comments
1 parent a828f7f commit c114360

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

overlays/emacs.nix

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ let
7676
lib = drv: ''lib${libName drv}.so'';
7777
linkCmd = drv: "ln -s ${drv}/parser $out/lib/${lib drv}";
7878
linkerFlag = drv: "-l" + libName drv;
79-
plugins = args.withTreeSitterPlugins super.pkgs.tree-sitter-grammars;
80-
tree-sitter-grammars = super.runCommand "tree-sitter-grammars" {
81-
} (super.lib.concatStringsSep "\n" (["mkdir -p $out/lib"] ++ (map linkCmd plugins)));
79+
plugins = args.withTreeSitterPlugins self.pkgs.tree-sitter-grammars;
80+
tree-sitter-grammars = super.runCommand "tree-sitter-grammars" {}
81+
(super.lib.concatStringsSep "\n" (["mkdir -p $out/lib"] ++ (map linkCmd plugins)));
8282
in {
83-
buildInputs = old.buildInputs ++ [ super.pkgs.tree-sitter tree-sitter-grammars ];
83+
buildInputs = old.buildInputs ++ [ self.pkgs.tree-sitter tree-sitter-grammars ];
8484
# before building the `.el` files, we need to allow the `tree-sitter` libraries
8585
# bundled in emacs to be dynamically loaded.
8686
TREE_SITTER_LIBS = super.lib.concatStringsSep " " ([ "-ltree-sitter" ] ++ (map linkerFlag plugins));
@@ -105,7 +105,7 @@ let
105105
withWebP = true;
106106
nativeComp = true;
107107
};
108-
108+
109109
emacsPgtk = mkPgtkEmacs "emacs-pgtk" ../repos/emacs/emacs-master.json { withSQLite3 = true; withGTK3 = true; };
110110

111111
emacsPgtkNativeComp = mkPgtkEmacs "emacs-pgtk-native-comp" ../repos/emacs/emacs-master.json { nativeComp = true; withSQLite3 = true; withGTK3 = true; };
@@ -118,6 +118,7 @@ let
118118
tree-sitter-python
119119
tree-sitter-javascript
120120
tree-sitter-json
121+
tree-sitter-tsx
121122
]);
122123
};
123124

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"type": "savannah", "repo": "emacs", "rev": "57e37e9128b4f6f9a2aae0bc25de6c208d58e5d0", "sha256": "1h6zicpj6bym4nclcgwvjbdisi1v5psvmpz1lik7ha85jdscpnd2", "version": "20221010.0"}
1+
{"type": "savannah", "repo": "emacs", "rev": "260e47e9a3c9b3baecef81e69c218989dc0cd7a4", "sha256": "1j5pbrp1bb5q6vn5ykdim8jvxj466gh1i6brl5baphr3a2cvvja8", "version": "20221017.0"}

0 commit comments

Comments
 (0)