tint2: fix build (#386987)

This commit is contained in:
Sandro
2025-03-05 16:07:13 +01:00
committed by GitHub
+10 -5
View File
@@ -22,6 +22,7 @@
libXdmcp,
libstartup_notification,
wrapGAppsHook3,
versionCheckHook,
}:
stdenv.mkDerivation rec {
@@ -78,13 +79,17 @@ stdenv.mkDerivation rec {
];
postPatch = ''
for f in ./src/launcher/apps-common.c \
./src/launcher/icon-theme-common.c
do
substituteInPlace $f --replace-fail /usr/share/ /run/current-system/sw/share/
done
# Add missing dependency on libm
substituteInPlace src/tint2conf/CMakeLists.txt \
--replace-fail "RSVG_LIBRARIES} )" "RSVG_LIBRARIES} m)"
substituteInPlace src/launcher/apps-common.c src/launcher/icon-theme-common.c \
--replace-fail /usr/share/ /run/current-system/sw/share/
'';
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
meta = with lib; {
homepage = "https://gitlab.com/nick87720z/tint2";
description = "Simple panel/taskbar unintrusive and light (memory, cpu, aestetic)";