nixos/system-path: remove wrappers from system-path

Remove .*-wrapped files from system-path. These files aren’t needed in
the path for users.
This commit is contained in:
Matthew Bauer 2019-08-30 17:39:52 -04:00
parent 3155fbff0a
commit 54d039f8f4

View File

@ -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