emacsPackages.jq-mode: patch in jq program

This commit is contained in:
Daniel Nagy
2025-03-21 16:00:00 +01:00
parent fd7860ac7d
commit 088be2478c
@@ -1295,6 +1295,15 @@ let
# https://github.com/fred-o/jekyll-modes/issues/6
jekyll-modes = addPackageRequires super.jekyll-modes [ self.poly-markdown ];
jq-mode = super.jq-mode.overrideAttrs (attrs: {
postPatch = attrs.postPatch or "" + ''
substituteInPlace jq-mode.el \
--replace-fail 'jq-interactive-command "jq"' 'jq-interactive-command "${lib.getExe pkgs.jq}"'
substituteInPlace ob-jq.el \
--replace-fail 'org-babel-jq-command "jq"' 'org-babel-jq-command "${lib.getExe pkgs.jq}"'
'';
});
jss = ignoreCompilationError super.jss; # elisp error
# missing optional dependencies: vterm or eat