2023-12-28 00:58:38 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2024-04-25 23:44:06 +02:00
|
|
|
, cmake
|
|
|
|
, perl
|
2023-12-28 00:58:38 +01:00
|
|
|
, pkg-config
|
2024-04-25 23:44:06 +02:00
|
|
|
, qt6
|
2024-01-09 13:24:34 +01:00
|
|
|
, xkeyboard_config
|
2024-01-05 19:30:39 +01:00
|
|
|
, unstableGitUpdater
|
2023-12-28 00:58:38 +01:00
|
|
|
}:
|
|
|
|
|
2024-04-25 23:44:06 +02:00
|
|
|
stdenv.mkDerivation {
|
2023-12-28 00:58:38 +01:00
|
|
|
pname = "labwc-tweaks";
|
2024-04-25 23:44:06 +02:00
|
|
|
version = "0-unstable-2024-04-27";
|
2023-12-28 00:58:38 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "labwc";
|
2024-01-09 13:26:46 +01:00
|
|
|
repo = "labwc-tweaks";
|
2024-04-25 23:44:06 +02:00
|
|
|
rev = "9007079640e0f38c1d69ac94899229354a5c67b2";
|
|
|
|
hash = "sha256-klKPHAhJ6fedFojXPfesjs1dG5NJhBZkzynhka5vD8M=";
|
2023-12-28 00:58:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-04-25 23:44:06 +02:00
|
|
|
cmake
|
|
|
|
perl
|
2023-12-28 00:58:38 +01:00
|
|
|
pkg-config
|
2024-04-25 23:44:06 +02:00
|
|
|
qt6.qttools
|
|
|
|
qt6.wrapQtAppsHook
|
2023-12-28 00:58:38 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2024-04-25 23:44:06 +02:00
|
|
|
qt6.qtbase
|
|
|
|
qt6.qtwayland
|
2023-12-28 00:58:38 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
2024-04-25 23:44:06 +02:00
|
|
|
substituteInPlace tweaks-qt/gen-layout-list --replace-fail /usr/share/X11/xkb ${xkeyboard_config}/share/X11/xkb
|
2023-12-28 00:58:38 +01:00
|
|
|
'';
|
|
|
|
|
2024-01-05 19:30:39 +01:00
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
|
2023-12-28 00:58:38 +01:00
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/labwc/labwc-tweaks";
|
|
|
|
description = "Configuration gui app for labwc";
|
|
|
|
mainProgram = "labwc-tweaks";
|
2024-01-05 19:32:38 +01:00
|
|
|
license = lib.licenses.gpl2Only;
|
2023-12-28 00:58:38 +01:00
|
|
|
platforms = lib.platforms.unix;
|
2024-01-05 19:33:04 +01:00
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres romildo ];
|
2023-12-28 00:58:38 +01:00
|
|
|
};
|
2024-04-25 23:44:06 +02:00
|
|
|
}
|