plymouth: 23.360.11 -> 24.004.60

This commit is contained in:
arthsmn 2024-01-14 11:16:04 -03:00
parent 3d673c9b54
commit 9e817011de
No known key found for this signature in database
2 changed files with 30 additions and 2 deletions

View file

@ -2,6 +2,7 @@
, stdenv , stdenv
, fetchFromGitLab , fetchFromGitLab
, writeText , writeText
, substituteAll
, meson , meson
, pkg-config , pkg-config
, ninja , ninja
@ -16,11 +17,12 @@
, pango , pango
, systemd , systemd
, xorg , xorg
, fontconfig
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "plymouth"; pname = "plymouth";
version = "23.360.11"; version = "24.004.60";
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
@ -29,7 +31,7 @@ stdenv.mkDerivation (finalAttrs: {
owner = "plymouth"; owner = "plymouth";
repo = "plymouth"; repo = "plymouth";
rev = finalAttrs.version; rev = finalAttrs.version;
hash = "sha256-Uun4KtrbkFCiGq3WpZlZ8NKKCOnM+jcgYa8qoqAYdaw="; hash = "sha256-9JmZCm8bjteJTQrMSJeL4x2CAI6RpKowFUDSCcMS4MM=";
}; };
patches = [ patches = [
@ -37,6 +39,11 @@ stdenv.mkDerivation (finalAttrs: {
./dont-create-broken-symlink.patch ./dont-create-broken-symlink.patch
# add support for loading plugins from /run to assist NixOS module # add support for loading plugins from /run to assist NixOS module
./add-runtime-plugin-path.patch ./add-runtime-plugin-path.patch
# fix FHS hardcoded paths
(substituteAll {
src = ./fix-paths.patch;
fcmatch = "${fontconfig}/bin/fc-match";
})
]; ];
strictDeps = true; strictDeps = true;

View file

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