mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-20 09:19:39 +01:00
vdirsyncer: create postHook script when non-empty
This commit is contained in:
parent
f80df90c10
commit
1683c507c2
2 changed files with 5 additions and 4 deletions
|
|
@ -26,8 +26,9 @@ let
|
|||
filterAttrs (_: v: v != null)
|
||||
((getAttrs [ "type" "fileExt" "encoding" ] a.local) // {
|
||||
path = a.local.path;
|
||||
postHook = pkgs.writeShellScriptBin "post-hook" a.vdirsyncer.postHook
|
||||
+ "/bin/post-hook";
|
||||
postHook = optionalString (a.vdirsyncer.postHook != null)
|
||||
(pkgs.writeShellScriptBin "post-hook" a.vdirsyncer.postHook
|
||||
+ "/bin/post-hook");
|
||||
});
|
||||
|
||||
remoteStorage = a:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue