baserow: copy missing non-Python directories into sitePackages anyway

This commit is contained in:
Luke Granger-Brown 2021-12-20 18:08:39 -08:00
parent c2ca979558
commit d806f8da1c

View file

@ -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
]);