aboutsummaryrefslogtreecommitdiffstats
path: root/default.nix
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-12-08 06:27:15 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-12-08 06:43:01 +0100
commit0d20548e3846cb80acca07fad2a1dc3cfe024528 (patch)
tree6605eb393af99914b4cce483f56e1becbcbe073d /default.nix
parent5842e730152a2ae11fc8772a505baa3ba81b1e9c (diff)
chore: drop tree-grepper
Regresses in that we only support Haskell for now, as Elm, Nix or Bash are not available as tree-sitter-* Haskell packages.
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix14
1 files changed, 12 insertions, 2 deletions
diff --git a/default.nix b/default.nix
index 06709df..59d560e 100644
--- a/default.nix
+++ b/default.nix
@@ -1,6 +1,16 @@
{ pkgs ? import <nixpkgs> {
overlays = [
- (import ./pkgs)
+ (self: super: {
+ tree-sitter = super.tree-sitter.overrideAttrs (oldAttrs: {
+ buildInputs = oldAttrs.buildInputs or [ ] ++ [
+ super.makeWrapper
+ ];
+ postInstall = oldAttrs.postInstall or "" + ''
+ wrapProgram $out/bin/tree-sitter \
+ --prefix LD_LIBRARY_PATH : "${super.tree-sitter.withPlugins (_: self.tree-sitter.allGrammars)}"
+ '';
+ });
+ })
(self: super: {
anissue = pkgs.writers.writeDashBin "anissue" ''
set -efu
@@ -22,7 +32,6 @@ let
dependencies = [
pkgs.coreutils
pkgs.git
- pkgs.tree-grepper
];
};
postInstall = ''
@@ -53,6 +62,7 @@ rec {
pkgs.anissue
pkgs.ghcid
pkgs.haskell-language-server
+ pkgs.tree-sitter
] ++ anissue.passthru.dependencies;
withHoogle = true;
withHaddock = true;