about summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-08-30 17:39:52 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2019-09-09 12:26:20 -0400
commit54d039f8f45c520f4d3e100d3bfc5a7809c3c602 (patch)
tree853bfa2e5ab35c65d855b2f8d86768c383024934 /nixos/modules/config
parent3155fbff0adcd8abf762a5689de4af1c7b93b974 (diff)
downloadnixlib-54d039f8f45c520f4d3e100d3bfc5a7809c3c602.tar
nixlib-54d039f8f45c520f4d3e100d3bfc5a7809c3c602.tar.gz
nixlib-54d039f8f45c520f4d3e100d3bfc5a7809c3c602.tar.bz2
nixlib-54d039f8f45c520f4d3e100d3bfc5a7809c3c602.tar.lz
nixlib-54d039f8f45c520f4d3e100d3bfc5a7809c3c602.tar.xz
nixlib-54d039f8f45c520f4d3e100d3bfc5a7809c3c602.tar.zst
nixlib-54d039f8f45c520f4d3e100d3bfc5a7809c3c602.zip
nixos/system-path: remove wrappers from system-path
Remove .*-wrapped files from system-path. These files aren’t needed in
the path for users.
Diffstat (limited to 'nixos/modules/config')
-rw-r--r--nixos/modules/config/system-path.nix3
1 files changed, 3 insertions, 0 deletions
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