From 1063bc0965332d5d484ff2f99b08b2be1c8b496a Mon Sep 17 00:00:00 2001 From: Sergey Vlasov Date: Wed, 5 Jul 2023 16:45:16 +0300 Subject: [PATCH] avrdude: remove avrdude.ps from docs This PostScript file contains the full path of the dvips executable in comments, therefore the resulting package gets a runtime dependency on the texlive-combined-medium package, which adds almost 1GB to the closure size. The same documentation is still available in the PDF format, which is probably more useful in 2023. --- pkgs/development/embedded/avrdude/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/embedded/avrdude/default.nix b/pkgs/development/embedded/avrdude/default.nix index dfd0f027d6b7..64bfb8f85999 100644 --- a/pkgs/development/embedded/avrdude/default.nix +++ b/pkgs/development/embedded/avrdude/default.nix @@ -27,6 +27,11 @@ stdenv.mkDerivation rec { "-DBUILD_DOC=ON" ]; + # dvips output references texlive in comments, resulting in a huge closure + postInstall = lib.optionalString docSupport '' + rm $out/share/doc/${pname}/*.ps + ''; + meta = with lib; { description = "Command-line tool for programming Atmel AVR microcontrollers"; longDescription = ''