about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/dpdk
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2021-12-09 02:17:41 +0100
committerPierre Bourdon <delroth@gmail.com>2021-12-09 02:17:41 +0100
commit19eb8f294d23432a35e5677d8db9c16fd3889871 (patch)
tree3dd346bbf133509b316151d9a13b21f45ad10991 /pkgs/os-specific/linux/dpdk
parentd8ba6ecab95d93e500a2d8fc4b8d4c77928b00bd (diff)
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.
Diffstat (limited to 'pkgs/os-specific/linux/dpdk')
-rw-r--r--pkgs/os-specific/linux/dpdk/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/dpdk/default.nix b/pkgs/os-specific/linux/dpdk/default.nix
index 650c2516ef98a..bb4ba95a544b4 100644
--- a/pkgs/os-specific/linux/dpdk/default.nix
+++ b/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 \;
   '';