From 1d1e17ae609c611a67e322f428226820df16c279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Xaver=20H=C3=B6rl?= Date: Tue, 1 Dec 2020 09:39:15 +0100 Subject: [PATCH] iwd: don't include testing tools by default Put the testing tools in a seperate output. They blow up the closure size by a huge factor. --- pkgs/os-specific/linux/iwd/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/iwd/default.nix b/pkgs/os-specific/linux/iwd/default.nix index adf37a1b71b6..1bd1d9b77620 100644 --- a/pkgs/os-specific/linux/iwd/default.nix +++ b/pkgs/os-specific/linux/iwd/default.nix @@ -21,7 +21,7 @@ stdenv.mkDerivation rec { sha256 = "193wa13i2prfz1zr7nvwbgrxgacms57zj1n7x28yy5hmm3nnwbrd"; }; - outputs = [ "out" "man" ]; + outputs = [ "out" "man" "test" ]; nativeBuildInputs = [ autoreconfHook @@ -61,7 +61,8 @@ stdenv.mkDerivation rec { doCheck = true; postInstall = '' - cp -a test/* $out/bin/ + mkdir -p $test/bin + cp -a test/* $test/bin/ mkdir -p $out/share cp -a doc $out/share/ cp -a README AUTHORS TODO $out/share/doc/