From 100eae3b77f7ef9c36aa4ff509b2a58c10fcce55 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Mon, 19 Aug 2019 00:11:17 +0200 Subject: [PATCH] python: allow stripping tkinter --- pkgs/development/interpreters/python/cpython/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix index 3eddadeda1d..7561fdad785 100644 --- a/pkgs/development/interpreters/python/cpython/default.nix +++ b/pkgs/development/interpreters/python/cpython/default.nix @@ -24,6 +24,7 @@ , stripConfig ? false , stripIdlelib ? false , stripTests ? false +, stripTkinter ? false , rebuildBytecode ? true , stripBytecode ? false }: @@ -232,6 +233,8 @@ in with passthru; stdenv.mkDerivation { '' + optionalString stripIdlelib '' # Strip IDLE (and turtledemo, which uses it) rm -R $out/bin/idle* $out/lib/python*/{idlelib,turtledemo} + '' + optionalString stripTkinter '' + rm -R $out/lib/python*/tkinter '' + optionalString stripTests '' # Strip tests rm -R $out/lib/python*/test $out/lib/python*/**/test{,s}