diff options
Diffstat (limited to 'modules/communication/neomutt')
| -rw-r--r-- | modules/communication/neomutt/default.nix | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/modules/communication/neomutt/default.nix b/modules/communication/neomutt/default.nix index 70f286b..4bd1800 100644 --- a/modules/communication/neomutt/default.nix +++ b/modules/communication/neomutt/default.nix @@ -22,15 +22,24 @@ type = lib.types.package; default = pkgs.symlinkJoin { name = "neomutt-wrapped"; - paths = with pkgs; [ - neomutt - urlscan - ]; + paths = [ pkgs.neomutt ]; + nativeBuildInputs = [ pkgs.makeWrapper ]; + postBuild = '' + wrapProgram $out/bin/neomutt \ + --prefix PATH : ${lib.makeBinPath [ pkgs.urlscan ]} + ''; + meta.mainProgram = "neomutt"; }; defaultText = lib.literalExpression '' pkgs.symlinkJoin { name = "neomutt-wrapped"; - paths = with pkgs; [ neomutt urlscan ]; + paths = [ pkgs.neomutt ]; + nativeBuildInputs = [ pkgs.makeWrapper ]; + postBuild = ''' + wrapProgram $out/bin/neomutt \ + --prefix PATH : ''${lib.makeBinPath [ pkgs.urlscan ]} + '''; + meta.mainProgram = "neomutt"; } ''; description = "The neomutt package to use, wrapped with urlscan in PATH."; |
