mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-05 12:08:02 +03:00
nixos/boot.plymouth.font: escape font path
This fixes the usage of fonts whose filenames contain special characters of various sorts. For example, the setting ```nix boot.plymouth.font = "${pkgs.noto-fonts}/share/fonts/noto/NotoSans[wdth,wght].ttf"; ``` will cause a build failure, without this patch.
This commit is contained in:
parent
f1010e0469
commit
4f96031495
@ -219,7 +219,7 @@ in
|
|||||||
# Fonts
|
# Fonts
|
||||||
"/etc/plymouth/fonts".source = pkgs.runCommand "plymouth-initrd-fonts" {} ''
|
"/etc/plymouth/fonts".source = pkgs.runCommand "plymouth-initrd-fonts" {} ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
cp ${cfg.font} $out
|
cp ${escapeShellArg cfg.font} $out
|
||||||
'';
|
'';
|
||||||
"/etc/fonts/fonts.conf".text = ''
|
"/etc/fonts/fonts.conf".text = ''
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
|
Loading…
Reference in New Issue
Block a user