diff --git a/pkgs/servers/samba/default.nix b/pkgs/servers/samba/default.nix index b46f6494c165..e94c2d1c5547 100644 --- a/pkgs/servers/samba/default.nix +++ b/pkgs/servers/samba/default.nix @@ -9,6 +9,9 @@ stdenv.mkDerivation { }; buildInputs = [readline pam openldap]; - configureFlags = "--with-pam --with-smbmount"; + configureFlags = [" --with-pam " " --with-smbmount " + " --datadir=\$out/share " " --with-acl-support " + " --with-aio-support "]; postUnpack = "sourceRoot=\$sourceRoot/source"; + postInstall = "rm -rf \$out/var ; ln -s /var/samba $out/var "; }