dpdk: clean up installed docs to prevent spurious dependency

Closure size 941M -> 825M by getting rid of an unneeded dependency on
python3-docutils. This was dragged in by Sphinx cache files being
installed in the derivation output.
This commit is contained in:
Pierre Bourdon
2021-12-09 02:17:41 +01:00
parent d8ba6ecab9
commit 19eb8f294d
+5 -1
View File
@@ -68,7 +68,11 @@ in stdenv.mkDerivation rec {
rm -f $kmod/lib/modules/${kernel.modDirVersion}/build
'';
postInstall = lib.optionalString (withExamples != []) ''
postInstall = ''
# Remove Sphinx cache files. Not only are they not useful, but they also
# contain store paths causing spurious dependencies.
rm -rf $out/share/doc/dpdk/html/.doctrees
'' + lib.optionalString (withExamples != []) ''
find examples -type f -executable -exec install {} $out/bin \;
'';