From d806f8da1cacaa8e61a26a1e8e692559ecab4539 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Mon, 20 Dec 2021 18:08:39 -0800 Subject: [PATCH] baserow: copy missing non-Python directories into sitePackages anyway --- nix/pkgs/baserow/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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 ]);