Skip to content

Instantly share code, notes, and snippets.

@grahamc
Last active April 16, 2017 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamc/f618831969e382d7afa6b72bc7fd3580 to your computer and use it in GitHub Desktop.
Save grahamc/f618831969e382d7afa6b72bc7fd3580 to your computer and use it in GitHub Desktop.
let
mutate =
script: args:
(stdenvNoCC.mkDerivation (args // {
name = baseNameOf script;
phases = [ "installPhase" ];
installPhase = ''
cp ${script} $out
substituteAllInPlace $out
'';
}));
in mutate ./xdefault.el {
inherit msmtp;
}
(setq sendmail-program "@msmtp@/bin/msmtp")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment