mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-17 10:37:45 +03:00
Merge pull request #299805 from ncfavier/xorg-module-order
nixos/xserver: respect module order
This commit is contained in:
commit
3c9e0924c4
@ -111,7 +111,7 @@ let
|
|||||||
}
|
}
|
||||||
''
|
''
|
||||||
echo 'Section "Files"' >> $out
|
echo 'Section "Files"' >> $out
|
||||||
echo $fontpath >> $out
|
echo "$fontpath" >> $out
|
||||||
|
|
||||||
for i in ${toString fontsForXServer}; do
|
for i in ${toString fontsForXServer}; do
|
||||||
if test "''${i:0:''${#NIX_STORE}}" == "$NIX_STORE"; then
|
if test "''${i:0:''${#NIX_STORE}}" == "$NIX_STORE"; then
|
||||||
@ -121,11 +121,9 @@ let
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for i in $(find ${toString cfg.modules} -type d | sort); do
|
${concatMapStrings (m: ''
|
||||||
if test $(echo $i/*.so* | wc -w) -ne 0; then
|
echo " ModulePath \"${m}/lib/xorg/modules\"" >> "$out"
|
||||||
echo " ModulePath \"$i\"" >> $out
|
'') cfg.modules}
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
echo '${cfg.filesSection}' >> $out
|
echo '${cfg.filesSection}' >> $out
|
||||||
echo 'EndSection' >> $out
|
echo 'EndSection' >> $out
|
||||||
|
Loading…
Reference in New Issue
Block a user