diff --git a/pkgs/shells/fish/plugins/done.nix b/pkgs/shells/fish/plugins/done.nix index 5f0fd672adf6..bc580f35e396 100644 --- a/pkgs/shells/fish/plugins/done.nix +++ b/pkgs/shells/fish/plugins/done.nix @@ -3,6 +3,7 @@ buildFishPlugin, fetchFromGitHub, fishtape, + jq, }: buildFishPlugin rec { @@ -16,6 +17,12 @@ buildFishPlugin rec { hash = "sha256-GZ1ZpcaEfbcex6XvxOFJDJqoD9C5out0W4bkkn768r0="; }; + postPatch = '' + substituteInPlace conf.d/done.fish \ + --replace-fail " jq " " ${lib.getExe jq} " \ + --replace-fail "and type -q jq" "and type -q ${lib.getExe jq}" + ''; + checkPlugins = [ fishtape ]; checkPhase = '' fishtape test/done.fish @@ -25,6 +32,9 @@ buildFishPlugin rec { description = "Automatically receive notifications when long processes finish"; homepage = "https://github.com/franciscolourenco/done"; license = lib.licenses.mit; - maintainers = [ lib.maintainers.malo ]; + maintainers = with lib.maintainers; [ + malo + rexies + ]; }; }