Unverified Commit 088be247 authored by Daniel Nagy's avatar Daniel Nagy
Browse files

emacsPackages.jq-mode: patch in jq program

parent fd7860ac
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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