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.
main
Pierre Bourdon 3 years ago
parent d8ba6ecab9
commit 19eb8f294d
No known key found for this signature in database
GPG Key ID: 6FB80DCD84DA0F1C
  1. 6
      pkgs/os-specific/linux/dpdk/default.nix

@ -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 \;
'';

Loading…
Cancel
Save