In https://github.com/NixOS/nixpkgs/issues/81482 , we had two packages which incorrectly exported a test module, we solved this with a specific shell hook which removed just that directory, but it might be nice to make this generic as now there's another issue with two packages exporting an examples modules.
maybe something like:
removePythonModules = [ "examples" ];
and the hook would be something like:
for module in ${removePythonModules[@]}; do
echo "Removing @sitePackages@/${module}"
rm -r $out/@sitePackages@/${module}
done
In https://github.com/NixOS/nixpkgs/issues/81482 , we had two packages which incorrectly exported a
test
module, we solved this with a specific shell hook which removed just that directory, but it might be nice to make this generic as now there's another issue with two packages exporting anexamples
modules.maybe something like:
and the hook would be something like:
cc @FRidh