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