From 96d7f35e96f5b8baa249ce1d7b237a3f34ee87ab Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 20 Mar 2017 14:19:50 +0100 Subject: [PATCH] diffoscope: Don't propagate build inputs This reduces the runtime closure size from 297 to 132 MiB. --- pkgs/tools/misc/diffoscope/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/misc/diffoscope/default.nix b/pkgs/tools/misc/diffoscope/default.nix index 6a9763666d3b..4f0a9ba12c11 100644 --- a/pkgs/tools/misc/diffoscope/default.nix +++ b/pkgs/tools/misc/diffoscope/default.nix @@ -29,11 +29,13 @@ python3.pkgs.buildPythonApplication rec { # Still missing these tools: enjarify, otool & lipo (maybe OS X only), showttf # Also these libraries: python3-guestfs # FIXME: move xxd into a separate package so we don't have to pull in all of vim. - propagatedBuildInputs = (with python3.pkgs; [ debian libarchive-c python_magic tlsh rpm ]) ++ + buildInputs = map lib.getBin ([ acl binutils bzip2 cbfstool cdrkit cpio diffutils e2fsprogs file gettext gzip libcaca poppler_utils sng sqlite squashfsTools unzip vim xz colordiff ] ++ lib.optionals enableBloat [ colord fpc ghc gnupg1 jdk mono pdftk ]); + pythonPath = with python3.pkgs; [ debian libarchive-c python_magic tlsh rpm ]; + doCheck = false; # Calls 'mknod' in squashfs tests, which needs root postInstall = ''