1--- a/conf/post-install 1970-01-01 03:00:01.000000000 +0300
2+++ b/conf/post-install 2016-01-20 13:25:18.382233172 +0200
3@@ -254,6 +254,8 @@
4 }
5
6 # Bootstrapping problem.
7+meta_directory="@PACKAGE@/etc/postfix"
8+command_directory="@PACKAGE@/bin"
9
10 if [ -n "$command_directory" ]
11 then
12@@ -528,7 +530,16 @@
13 # Skip uninstalled files.
14 case $path in
15 no|no/*) continue;;
16+ # Skip immutable files from package, correct permissions provided by Nix.
17+ @PACKAGE@/*) continue;
18 esac
19+ # Also skip symlinks following to /nix/store
20+ if test -L $path; then
21+ case "$(readlink $path)" in
22+ @NIX_STORE@/*) continue;
23+ esac
24+ fi
25+
26 # Pick up the flags.
27 case $flags in *u*) upgrade_flag=1;; *) upgrade_flag=;; esac
28 case $flags in *c*) create_flag=1;; *) create_flag=;; esac