forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / data / themes / material-kwin-decoration / default.nix
blob85bf37cc7892aa463df9c78fde8071a96306f4b8
1 { lib
2 , mkDerivation
3 , fetchFromGitHub
4 , cmake
5 , extra-cmake-modules
6 , qtx11extras
7 , kcoreaddons
8 , kguiaddons
9 , kconfig
10 , kdecoration
11 , kconfigwidgets
12 , kwindowsystem
13 , kiconthemes
14 , kwayland
15 , unstableGitUpdater
18 mkDerivation rec {
19   pname = "material-kwin-decoration";
20   version = "7-unstable-2023-01-15";
22   src = fetchFromGitHub {
23     owner = "Zren";
24     repo = "material-decoration";
25     rev = "0e989e5b815b64ee5bca989f983da68fa5556644";
26     sha256 = "sha256-Ncn5jxkuN4ZBWihfycdQwpJ0j4sRpBGMCl6RNiH4mXg=";
27   };
29   # Remove -Werror since it uses deprecated methods
30   postPatch = ''
31     substituteInPlace ./CMakeLists.txt \
32       --replace "add_definitions (-Wall -Werror)" "add_definitions (-Wall)"
33   '';
35   nativeBuildInputs = [ cmake extra-cmake-modules ];
37   buildInputs = [
38     qtx11extras
39     kcoreaddons
40     kguiaddons
41     kdecoration
42     kconfig
43     kconfigwidgets
44     kwindowsystem
45     kiconthemes
46     kwayland
47   ];
49   passthru = {
50     updateScript = unstableGitUpdater {
51       tagPrefix = "v";
52     };
53   };
55   meta = with lib; {
56     description = "Material-ish window decoration theme for KWin";
57     homepage = "https://github.com/Zren/material-decoration";
58     license = licenses.gpl2;
59     maintainers = with maintainers; [ nickcao ];
60   };