mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 15:14:26 +00:00
offlineimap: Fix for OfflineIMAP 8 (#2479)
Nixpkgs switched to OfflineIMAP version 8 which means that Python 3 is now used instead of Python 2. As a result, get_pass() now returns a byte array instead of a string and the argument to get_pass() must be a byte array too. See https://github.com/OfflineIMAP/offlineimap3/issues/103.
This commit is contained in:
parent
a7c5b00d44
commit
05a3116091
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ let
|
|||
remotePassEval =
|
||||
let arglist = concatMapStringsSep "," (x: "'${x}'") passwordCommand;
|
||||
in optionalAttrs (passwordCommand != null) {
|
||||
remotepasseval = ''get_pass("${name}", [${arglist}]).strip("\n")'';
|
||||
remotepasseval = ''get_pass("${name}", [${arglist}]).strip(b"\n")'';
|
||||
};
|
||||
in toIni {
|
||||
"Account ${name}" = {
|
||||
|
|
Loading…
Reference in a new issue