depot/pkgs/by-name/ap/application-title-bar/package.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

40 lines
1 KiB
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
kdePackages,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "application-title-bar";
version = "0.7.5";
src = fetchFromGitHub {
owner = "antroids";
repo = "application-title-bar";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-mC7aHZzrahCqLStoc5diiKXpP2LOaK5EwpFVte+qZS4=";
};
propagatedUserEnvPkgs = with kdePackages; [ kconfig ];
dontWrapQtApps = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/plasma/plasmoids/com.github.antroids.application-title-bar
cp -r package/* $out/share/plasma/plasmoids/com.github.antroids.application-title-bar
runHook postInstall
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "KDE Plasma6 widget with window controls";
homepage = "https://github.com/antroids/application-title-bar";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ HeitorAugustoLN ];
inherit (kdePackages.kwindowsystem.meta) platforms;
};
})