This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

tools.mutt: convert to use makeWrapper

Replace writeShellApplication with makeWrapper:
- Set NOTMUCH_CONFIG environment variable directly
- Pass muttrc via -F flag
- Remove obsolete mutt.sh script

+13 -13
+13 -9
tools/mutt/flake-module.nix
··· 1 1 { self, ... }: 2 2 { 3 3 perSystem = 4 - { pkgs, lib, ... }: 4 + { 5 + pkgs, 6 + lib, 7 + system, 8 + ... 9 + }: 5 10 { 6 11 packages.mutt = 7 12 let ··· 265 270 ''; 266 271 267 272 in 268 - (pkgs.writeShellApplication { 269 - name = "mutt"; 273 + (self.libWithPkgs.${pkgs.system}.makeWrapper pkgs.neomutt { 270 274 runtimeInputs = 271 275 [ 272 - pkgs.neomutt 273 276 pkgs.elinks 274 277 pkgs.msmtp 275 278 pkgs.notmuch ··· 278 281 ++ lib.optionals pkgs.stdenv.isLinux [ 279 282 pkgs.iputils 280 283 ]; 281 - text = '' 282 - export NOTMUCH_CONFIG_FILE=${pkgs.writeText "notmuch-config" notmuchConfig} 283 - export MUTTRC=${muttrc} 284 - ${builtins.readFile ./mutt.sh} 285 - ''; 284 + env = { 285 + NOTMUCH_CONFIG = "${pkgs.writeText "notmuch-config" notmuchConfig}"; 286 + }; 287 + flags = { 288 + "-F" = "${muttrc}"; 289 + }; 286 290 }) 287 291 // { 288 292 passthru.notmuchConfig = notmuchConfig;
-4
tools/mutt/mutt.sh
··· 1 - #!/usr/bin/env bash 2 - # Export notmuch config and run neomutt with custom config 3 - export NOTMUCH_CONFIG="$NOTMUCH_CONFIG_FILE" 4 - exec neomutt -F "$MUTTRC" "$@"