nixpkgs/pkgs/by-name/ap/application-title-bar/package.nix
2024-08-03 09:17:19 +00:00

40 lines
1.0 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, kdePackages
, nix-update-script
}:
stdenv.mkDerivation (finalAttrs: {
pname = "application-title-bar";
version = "0.6.9";
src = fetchFromGitHub {
owner = "antroids";
repo = "application-title-bar";
rev = "v${finalAttrs.version}";
hash = "sha256-49QZ2/77mj05xIJ9bVrxiNLzlfF1zURYr34kqt6tNzg=";
};
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;
};
})