Skip to content

Commit 88087e2

Browse files
authored
emacsPackages.jq-mode: patch in jq program (NixOS#391808)
2 parents f068b64 + 088be24 commit 88087e2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,6 +1302,15 @@ let
13021302
# https://github.com/fred-o/jekyll-modes/issues/6
13031303
jekyll-modes = addPackageRequires super.jekyll-modes [ self.poly-markdown ];
13041304

1305+
jq-mode = super.jq-mode.overrideAttrs (attrs: {
1306+
postPatch = attrs.postPatch or "" + ''
1307+
substituteInPlace jq-mode.el \
1308+
--replace-fail 'jq-interactive-command "jq"' 'jq-interactive-command "${lib.getExe pkgs.jq}"'
1309+
substituteInPlace ob-jq.el \
1310+
--replace-fail 'org-babel-jq-command "jq"' 'org-babel-jq-command "${lib.getExe pkgs.jq}"'
1311+
'';
1312+
});
1313+
13051314
jss = ignoreCompilationError super.jss; # elisp error
13061315

13071316
# missing optional dependencies: vterm or eat

0 commit comments

Comments
 (0)