diff --git a/nix/pkgs/baserow/default.nix b/nix/pkgs/baserow/default.nix index 9c4081f3b2..8f02a2b827 100644 --- a/nix/pkgs/baserow/default.nix +++ b/nix/pkgs/baserow/default.nix @@ -92,6 +92,12 @@ in # Yeet. Just assume everything is installed in the environment already. > requirements/base.txt ''; + postInstall = '' + comm -23 <(find $src/src/baserow/ -type d | sed "s,$src/src/baserow/,," | sort) <(find $out/${python.sitePackages}/baserow/ -type d | sed "s,$out/${python.sitePackages}/baserow/,," | sort) | while read missingDir; do + test -e "$out/${python.sitePackages}/baserow/$missingDir" && continue + cp -R "$src/src/baserow/$missingDir" "$out/${python.sitePackages}/baserow/$missingDir" + done + ''; propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ (with python.pkgs; [ baserow-premium-backend ]);