From 56348cf32af906156f69ce4436e6dcde8b53ec81 Mon Sep 17 00:00:00 2001 From: Nickiel Date: Mon, 11 Sep 2023 09:28:01 -0700 Subject: [PATCH] Added postFixup step to wrap msmtp to bin path https://discourse.nixos.org/t/makewrapper-vs-buildinputs/21474 Trying to make the global msmtp available to the program --- flake.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/flake.nix b/flake.nix index 50af1b7..defc7f4 100644 --- a/flake.nix +++ b/flake.nix @@ -77,6 +77,11 @@ rust-project TODO: write shell script for automatically updating `cargoHash` meta = meta // { description = "Using nextcloud notes to track time usage."; }; + + postFixup = '' + wrapProgram $out/bin/time_tracker \ + --prefix PATH : "${lib.makeBinPath [ msmtp ]}" + ''; }); }; nixosModules.default = { config, ... }: let