From 6b885cf4008e1518edd505265c0fe09447984a2e Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Mon, 22 Nov 2021 22:10:12 +0800 Subject: [PATCH] material-kwin-decoration: init at 20211028 --- .../material-kwin-decoration/default.nix | 48 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/data/themes/material-kwin-decoration/default.nix diff --git a/pkgs/data/themes/material-kwin-decoration/default.nix b/pkgs/data/themes/material-kwin-decoration/default.nix new file mode 100644 index 000000000000..f5dccefbc139 --- /dev/null +++ b/pkgs/data/themes/material-kwin-decoration/default.nix @@ -0,0 +1,48 @@ +{ lib +, mkDerivation +, fetchFromGitHub +, cmake +, extra-cmake-modules +, qtx11extras +, kcoreaddons +, kguiaddons +, kconfig +, kdecoration +, kconfigwidgets +, kwindowsystem +, kiconthemes +, kwayland +}: + +mkDerivation rec { + pname = "material-kwin-decoration"; + version = "unstable-20211028"; + + src = fetchFromGitHub { + owner = "Zren"; + repo = "material-decoration"; + rev = "cc5cc399a546b66907629b28c339693423c894c8"; + sha256 = "sha256-aYlnPFhf+ISVe5Ycryu5BSXY8Lb5OoueMqnWQZiv6Lc="; + }; + + nativeBuildInputs = [ cmake extra-cmake-modules ]; + + buildInputs = [ + qtx11extras + kcoreaddons + kguiaddons + kdecoration + kconfig + kconfigwidgets + kwindowsystem + kiconthemes + kwayland + ]; + + meta = with lib; { + description = "Material-ish window decoration theme for KWin"; + homepage = "https://github.com/Zren/material-decoration"; + license = licenses.gpl2; + maintainers = [ maintainers.nickcao ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index eaf92ebfeffa..428cb7bb973d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23369,6 +23369,8 @@ with pkgs; material-icons = callPackage ../data/fonts/material-icons { }; + material-kwin-decoration = libsForQt5.callPackage ../data/themes/material-kwin-decoration { }; + meslo-lg = callPackage ../data/fonts/meslo-lg {}; meslo-lgs-nf = callPackage ../data/fonts/meslo-lgs-nf {};