diff options
author | arthsmn <arth.sh@proton.me> | 2024-01-14 11:16:04 -0300 |
---|---|---|
committer | arthsmn <arth.sh@proton.me> | 2024-01-14 14:57:27 -0300 |
commit | 9e817011deed363d92ad3f21e9604a6501011ced (patch) | |
tree | d6f7a4c1a7d881d80af52b9c5587e91bae7dc4ac /pkgs/os-specific | |
parent | 3d673c9b54914a44379632f05ca11104056e8569 (diff) | |
download | nixlib-9e817011deed363d92ad3f21e9604a6501011ced.tar nixlib-9e817011deed363d92ad3f21e9604a6501011ced.tar.gz nixlib-9e817011deed363d92ad3f21e9604a6501011ced.tar.bz2 nixlib-9e817011deed363d92ad3f21e9604a6501011ced.tar.lz nixlib-9e817011deed363d92ad3f21e9604a6501011ced.tar.xz nixlib-9e817011deed363d92ad3f21e9604a6501011ced.tar.zst nixlib-9e817011deed363d92ad3f21e9604a6501011ced.zip |
plymouth: 23.360.11 -> 24.004.60
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/plymouth/default.nix | 11 | ||||
-rw-r--r-- | pkgs/os-specific/linux/plymouth/fix-paths.patch | 21 |
2 files changed, 30 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/plymouth/default.nix b/pkgs/os-specific/linux/plymouth/default.nix index 90f400defc2d..02245a108611 100644 --- a/pkgs/os-specific/linux/plymouth/default.nix +++ b/pkgs/os-specific/linux/plymouth/default.nix @@ -2,6 +2,7 @@ , stdenv , fetchFromGitLab , writeText +, substituteAll , meson , pkg-config , ninja @@ -16,11 +17,12 @@ , pango , systemd , xorg +, fontconfig }: stdenv.mkDerivation (finalAttrs: { pname = "plymouth"; - version = "23.360.11"; + version = "24.004.60"; outputs = [ "out" "dev" ]; @@ -29,7 +31,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "plymouth"; repo = "plymouth"; rev = finalAttrs.version; - hash = "sha256-Uun4KtrbkFCiGq3WpZlZ8NKKCOnM+jcgYa8qoqAYdaw="; + hash = "sha256-9JmZCm8bjteJTQrMSJeL4x2CAI6RpKowFUDSCcMS4MM="; }; patches = [ @@ -37,6 +39,11 @@ stdenv.mkDerivation (finalAttrs: { ./dont-create-broken-symlink.patch # add support for loading plugins from /run to assist NixOS module ./add-runtime-plugin-path.patch + # fix FHS hardcoded paths + (substituteAll { + src = ./fix-paths.patch; + fcmatch = "${fontconfig}/bin/fc-match"; + }) ]; strictDeps = true; diff --git a/pkgs/os-specific/linux/plymouth/fix-paths.patch b/pkgs/os-specific/linux/plymouth/fix-paths.patch new file mode 100644 index 000000000000..5f930403f8ac --- /dev/null +++ b/pkgs/os-specific/linux/plymouth/fix-paths.patch @@ -0,0 +1,21 @@ +diff --git a/src/plugins/controls/label-freetype/plugin.c b/src/plugins/controls/label-freetype/plugin.c +index 917b04c0..83f2bec2 100644 +--- a/src/plugins/controls/label-freetype/plugin.c ++++ b/src/plugins/controls/label-freetype/plugin.c +@@ -127,7 +127,7 @@ find_default_font_path (void) + FILE *fp; + static char fc_match_out[PATH_MAX]; + +- fp = popen ("/usr/bin/fc-match -f %{file}", "r"); ++ fp = popen ("@fcmatch@ -f %{file}", "r"); + if (!fp) + return FONT_FALLBACK; + +@@ -144,7 +144,7 @@ find_default_monospace_font_path (void) + FILE *fp; + static char fc_match_out[PATH_MAX]; + +- fp = popen ("/usr/bin/fc-match -f %{file} monospace", "r"); ++ fp = popen ("@fcmatch@ -f %{file} monospace", "r"); + if (!fp) + return MONOSPACE_FONT_FALLBACK; |