1

add find-gsettings-schemas script

This commit is contained in:
2022-08-15 14:46:33 +02:00
parent 1f72e287eb
commit 90b80ea459

View File

@ -0,0 +1,13 @@
{ pkgs, ... }:
pkgs.writeShellScriptBin "find-gsettings-schemas" ''
schemas=""
for d in $(ls -1 --ignore "*.drv" /nix/store); do
schemas_dir=$(echo /nix/store/"$d"/share/gsettings-schemas/*)
if [[ -d "$schemas_dir" ]]; then
schemas="$schemas''${schemas:+:}$schemas_dir"
fi
done
echo "$schemas"
''