depot/pkgs/development/libraries/applet-window-buttons/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

50 lines
1.1 KiB
Nix

{ lib
, mkDerivation
, fetchFromGitHub
, fetchpatch
, cmake
, extra-cmake-modules
, kcoreaddons
, kdeclarative
, kdecoration
, plasma-framework
}:
mkDerivation rec {
pname = "applet-window-buttons";
version = "0.11.1";
src = fetchFromGitHub {
owner = "psifidotos";
repo = "applet-window-buttons";
rev = version;
hash = "sha256-Qww/22bEmjuq+R3o0UDcS6U+34qjaeSEy+g681/hcfE=";
};
patches = [
# FIXME: cherry-pick Plasma 5.27 build fix, remove for next release
(fetchpatch {
url = "https://github.com/psifidotos/applet-window-buttons/commit/924994e10402921bf22fefc099bca2914989081c.diff";
hash = "sha256-4ErqmkIbkvKwns50LhI8Et1EMyvrXYcNRL1rXCxau2w=";
})
];
nativeBuildInputs = [
cmake
extra-cmake-modules
];
buildInputs = [
kcoreaddons
kdeclarative
kdecoration
plasma-framework
];
meta = with lib; {
description = "Plasma 5 applet in order to show window buttons in your panels";
homepage = "https://github.com/psifidotos/applet-window-buttons";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ dotlambda ];
};
}