diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2019-08-30 17:39:52 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2019-09-09 12:26:20 -0400 |
commit | 54d039f8f45c520f4d3e100d3bfc5a7809c3c602 (patch) | |
tree | 853bfa2e5ab35c65d855b2f8d86768c383024934 /nixos/modules/config | |
parent | 3155fbff0adcd8abf762a5689de4af1c7b93b974 (diff) |
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.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/config/system-path.nix b/nixos/modules/config/system-path.nix index fae2fc7400829..aba9bc0945b19 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 |