2021-11-22 14:10:12 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, qtx11extras
|
|
|
|
, kcoreaddons
|
|
|
|
, kguiaddons
|
|
|
|
, kconfig
|
|
|
|
, kdecoration
|
|
|
|
, kconfigwidgets
|
|
|
|
, kwindowsystem
|
|
|
|
, kiconthemes
|
|
|
|
, kwayland
|
2022-07-30 08:35:35 +00:00
|
|
|
, unstableGitUpdater
|
2021-11-22 14:10:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "material-kwin-decoration";
|
2022-07-30 08:35:35 +00:00
|
|
|
version = "unstable-2022-01-19";
|
2021-11-22 14:10:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Zren";
|
|
|
|
repo = "material-decoration";
|
2022-07-30 08:35:35 +00:00
|
|
|
rev = "973949761f609f9c676c5b2b7c6d9560661d34c3";
|
|
|
|
sha256 = "sha256-n+yUmBUrkS+06qLnzl2P6CTQZZbDtJLy+2mDPCcQz9M=";
|
2021-11-22 14:10:12 +00:00
|
|
|
};
|
|
|
|
|
2022-12-14 10:30:01 +00:00
|
|
|
# Remove -Werror since it uses deprecated methods
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace ./CMakeLists.txt \
|
|
|
|
--replace "add_definitions (-Wall -Werror)" "add_definitions (-Wall)"
|
|
|
|
'';
|
|
|
|
|
2021-11-22 14:10:12 +00:00
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtx11extras
|
|
|
|
kcoreaddons
|
|
|
|
kguiaddons
|
|
|
|
kdecoration
|
|
|
|
kconfig
|
|
|
|
kconfigwidgets
|
|
|
|
kwindowsystem
|
|
|
|
kiconthemes
|
|
|
|
kwayland
|
|
|
|
];
|
|
|
|
|
2022-07-30 08:35:35 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = unstableGitUpdater { };
|
|
|
|
};
|
|
|
|
|
2021-11-22 14:10:12 +00: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 08:35:35 +00:00
|
|
|
maintainers = with maintainers; [ nickcao ];
|
2021-11-22 14:10:12 +00:00
|
|
|
};
|
|
|
|
}
|