From d04595402d1ecf7974feaddd206ae9d1bcaabdfc Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 21 Nov 2024 17:51:26 -0500 Subject: [PATCH] samba: set correct pythondir --- pkgs/servers/samba/4.x.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/servers/samba/4.x.nix b/pkgs/servers/samba/4.x.nix index 96ef319fc255..2f2a2bca21c1 100644 --- a/pkgs/servers/samba/4.x.nix +++ b/pkgs/servers/samba/4.x.nix @@ -161,6 +161,9 @@ stdenv.mkDerivation (finalAttrs: { "--sysconfdir=/etc" "--localstatedir=/var" "--disable-rpath" + # otherwise third_party/waf/waflib/Tools/python.py would + # get the wrong pythondir from build platform python + "--pythondir=${placeholder "out"}/${python.sitePackages}" (lib.enableFeature enablePrinting "cups") ] ++ optional (!enableDomainController) "--without-ad-dc"