btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / la / labwc-tweaks / package.nix
blobc79b5984690313fcdf812bb1ec3afa6d6c9b43a7
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , cmake
5 , perl
6 , pkg-config
7 , qt6
8 , xkeyboard_config
9 , unstableGitUpdater
12 stdenv.mkDerivation {
13   pname = "labwc-tweaks";
14   version = "0-unstable-2024-04-27";
16   src = fetchFromGitHub {
17     owner = "labwc";
18     repo = "labwc-tweaks";
19     rev = "9007079640e0f38c1d69ac94899229354a5c67b2";
20     hash = "sha256-klKPHAhJ6fedFojXPfesjs1dG5NJhBZkzynhka5vD8M=";
21   };
23   nativeBuildInputs = [
24     cmake
25     perl
26     pkg-config
27     qt6.qttools
28     qt6.wrapQtAppsHook
29   ];
31   buildInputs = [
32     qt6.qtbase
33     qt6.qtwayland
34   ];
36   strictDeps = true;
38   postPatch = ''
39     substituteInPlace tweaks-qt/gen-layout-list --replace-fail /usr/share/X11/xkb ${xkeyboard_config}/share/X11/xkb
40   '';
42   passthru.updateScript = unstableGitUpdater { };
44   meta = {
45     homepage = "https://github.com/labwc/labwc-tweaks";
46     description = "Configuration gui app for labwc";
47     mainProgram = "labwc-tweaks";
48     license = lib.licenses.gpl2Only;
49     platforms = lib.platforms.unix;
50     maintainers = with lib.maintainers; [ AndersonTorres romildo ];
51   };