mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
50 lines
971 B
Nix
50 lines
971 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
extra-cmake-modules,
|
|
kcmutils,
|
|
kcoreaddons,
|
|
kdeclarative,
|
|
kdecoration,
|
|
libplasma,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "applet-window-buttons6";
|
|
version = "0.14.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "moodyhunter";
|
|
repo = "applet-window-buttons6";
|
|
rev = "v${version}";
|
|
hash = "sha256-HnlgBQKT99vVkl6DWqMkN8Vz+QzzZBGj5tqOJ22VkJ8=";
|
|
};
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
# kdecoration headers include C++20 spaceship operator
|
|
env.NIX_CFLAGS_COMPILE = "-std=c++20";
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
extra-cmake-modules
|
|
];
|
|
|
|
buildInputs = [
|
|
kcmutils
|
|
kcoreaddons
|
|
kdeclarative
|
|
kdecoration
|
|
libplasma
|
|
];
|
|
|
|
meta = {
|
|
description = "Plasma 6 applet in order to show window buttons in your panels";
|
|
homepage = "https://github.com/moodyhunter/applet-window-buttons6";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = with lib.maintainers; [ A1ca7raz ];
|
|
};
|
|
}
|