Unverified Commit 81874c55 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

tint2: fix build (#386987)

parents bdadf0d0 a76d0ea4
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -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)";