2021-11-22 15:10:12 +01:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, qtx11extras
|
|
|
|
, kcoreaddons
|
|
|
|
, kguiaddons
|
|
|
|
, kconfig
|
|
|
|
, kdecoration
|
|
|
|
, kconfigwidgets
|
|
|
|
, kwindowsystem
|
|
|
|
, kiconthemes
|
|
|
|
, kwayland
|
2022-07-30 10:35:35 +02:00
|
|
|
, unstableGitUpdater
|
2021-11-22 15:10:12 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "material-kwin-decoration";
|
2023-04-08 09:13:56 +02:00
|
|
|
version = "unstable-2023-01-15";
|
2021-11-22 15:10:12 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Zren";
|
|
|
|
repo = "material-decoration";
|
2023-04-08 09:13:56 +02:00
|
|
|
rev = "0e989e5b815b64ee5bca989f983da68fa5556644";
|
|
|
|
sha256 = "sha256-Ncn5jxkuN4ZBWihfycdQwpJ0j4sRpBGMCl6RNiH4mXg=";
|
2021-11-22 15:10:12 +01:00
|
|
|
};
|
|
|
|
|
2022-12-14 11:30:01 +01:00
|
|
|
# Remove -Werror since it uses deprecated methods
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace ./CMakeLists.txt \
|
|
|
|
--replace "add_definitions (-Wall -Werror)" "add_definitions (-Wall)"
|
|
|
|
'';
|
|
|
|
|
2021-11-22 15:10:12 +01:00
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtx11extras
|
|
|
|
kcoreaddons
|
|
|
|
kguiaddons
|
|
|
|
kdecoration
|
|
|
|
kconfig
|
|
|
|
kconfigwidgets
|
|
|
|
kwindowsystem
|
|
|
|
kiconthemes
|
|
|
|
kwayland
|
|
|
|
];
|
|
|
|
|
2022-07-30 10:35:35 +02:00
|
|
|
passthru = {
|
|
|
|
updateScript = unstableGitUpdater { };
|
|
|
|
};
|
|
|
|
|
2021-11-22 15:10:12 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Material-ish window decoration theme for KWin";
|
|
|
|
homepage = "https://github.com/Zren/material-decoration";
|
|
|
|
license = licenses.gpl2;
|
2022-07-30 10:35:35 +02:00
|
|
|
maintainers = with maintainers; [ nickcao ];
|
2021-11-22 15:10:12 +01:00
|
|
|
};
|
|
|
|
}
|