Unverified Commit 88087e2e authored by Lin Jian's avatar Lin Jian Committed by GitHub
Browse files

emacsPackages.jq-mode: patch in jq program (#391808)

parents f068b64f 088be247
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1302,6 +1302,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