f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
39 lines
1 KiB
Nix
39 lines
1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, kdePackages
|
|
, nix-update-script
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "application-title-bar";
|
|
version = "0.6.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "antroids";
|
|
repo = "application-title-bar";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-pwCmkFEhxz7ZtNZNnIK2cTo+GDlIRIZ3VQ76n6qJ0Ac=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
})
|