From 54d039f8f45c520f4d3e100d3bfc5a7809c3c602 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Fri, 30 Aug 2019 17:39:52 -0400 Subject: nixos/system-path: remove wrappers from system-path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove .*-wrapped files from system-path. These files aren’t needed in the path for users. --- nixos/modules/config/system-path.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nixos/modules/config/system-path.nix') diff --git a/nixos/modules/config/system-path.nix b/nixos/modules/config/system-path.nix index fae2fc740082..aba9bc0945b1 100644 --- a/nixos/modules/config/system-path.nix +++ b/nixos/modules/config/system-path.nix @@ -135,6 +135,9 @@ in # outputs TODO: note that the tools will often not be linked by default postBuild = '' + # Remove wrapped binaries, they shouldn't be accessible via PATH. + find $out/bin -maxdepth 1 -name ".*-wrapped" -type l -delete + if [ -x $out/bin/glib-compile-schemas -a -w $out/share/glib-2.0/schemas ]; then $out/bin/glib-compile-schemas $out/share/glib-2.0/schemas fi -- cgit 1.4.1