about summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-09-09 12:26:55 -0400
committerGitHub <noreply@github.com>2019-09-09 12:26:55 -0400
commitc270c0ce6a9c9b61598fa20ea31ded4b295e7fba (patch)
tree5215687fafadcb19b26efbe40beb4bfb4f4f00d1 /nixos/modules/config
parentf0d6a96202061d871afa59b85759bb2baec30e13 (diff)
parent54d039f8f45c520f4d3e100d3bfc5a7809c3c602 (diff)
downloadnixlib-c270c0ce6a9c9b61598fa20ea31ded4b295e7fba.tar
nixlib-c270c0ce6a9c9b61598fa20ea31ded4b295e7fba.tar.gz
nixlib-c270c0ce6a9c9b61598fa20ea31ded4b295e7fba.tar.bz2
nixlib-c270c0ce6a9c9b61598fa20ea31ded4b295e7fba.tar.lz
nixlib-c270c0ce6a9c9b61598fa20ea31ded4b295e7fba.tar.xz
nixlib-c270c0ce6a9c9b61598fa20ea31ded4b295e7fba.tar.zst
nixlib-c270c0ce6a9c9b61598fa20ea31ded4b295e7fba.zip
Merge pull request #67795 from matthewbauer/remove-hidden-bins
nixos/system-path: remove wrappers from system-path
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