2024-06-20 14:57:18 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, kdePackages
|
2024-07-27 06:49:29 +00:00
|
|
|
, nix-update-script
|
2024-06-20 14:57:18 +00:00
|
|
|
}:
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2024-06-20 14:57:18 +00:00
|
|
|
pname = "application-title-bar";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.6.8";
|
2024-06-20 14:57:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "antroids";
|
|
|
|
repo = "application-title-bar";
|
2024-07-27 06:49:29 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-pwCmkFEhxz7ZtNZNnIK2cTo+GDlIRIZ3VQ76n6qJ0Ac=";
|
2024-06-20 14:57:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedUserEnvPkgs = with kdePackages; [ kconfig ];
|
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/plasma/plasmoids/com.github.antroids.application-title-bar
|
2024-07-27 06:49:29 +00:00
|
|
|
cp -r package/* $out/share/plasma/plasmoids/com.github.antroids.application-title-bar
|
2024-06-20 14:57:18 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "KDE Plasma6 widget with window controls";
|
|
|
|
homepage = "https://github.com/antroids/application-title-bar";
|
2024-07-27 06:49:29 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [ HeitorAugustoLN ];
|
|
|
|
inherit (kdePackages.kwindowsystem.meta) platforms;
|
2024-06-20 14:57:18 +00:00
|
|
|
};
|
2024-07-27 06:49:29 +00:00
|
|
|
})
|