mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
85ef2ebb5c
The code is incompatible with latest kde-frameworks
60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{ lib
|
|
, mkDerivation
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, extra-cmake-modules
|
|
, qtx11extras
|
|
, kcoreaddons
|
|
, kguiaddons
|
|
, kconfig
|
|
, kdecoration
|
|
, kconfigwidgets
|
|
, kwindowsystem
|
|
, kiconthemes
|
|
, kwayland
|
|
, unstableGitUpdater
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "material-kwin-decoration";
|
|
version = "unstable-2022-01-19";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Zren";
|
|
repo = "material-decoration";
|
|
rev = "973949761f609f9c676c5b2b7c6d9560661d34c3";
|
|
sha256 = "sha256-n+yUmBUrkS+06qLnzl2P6CTQZZbDtJLy+2mDPCcQz9M=";
|
|
};
|
|
|
|
# Remove -Werror since it uses deprecated methods
|
|
postPatch = ''
|
|
substituteInPlace ./CMakeLists.txt \
|
|
--replace "add_definitions (-Wall -Werror)" "add_definitions (-Wall)"
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules ];
|
|
|
|
buildInputs = [
|
|
qtx11extras
|
|
kcoreaddons
|
|
kguiaddons
|
|
kdecoration
|
|
kconfig
|
|
kconfigwidgets
|
|
kwindowsystem
|
|
kiconthemes
|
|
kwayland
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = unstableGitUpdater { };
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Material-ish window decoration theme for KWin";
|
|
homepage = "https://github.com/Zren/material-decoration";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ nickcao ];
|
|
};
|
|
}
|