From 488f33f8f1349eb193d11ca6cfa58dc3eb9dcd96 Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Mon, 1 Jul 2024 17:13:24 +0000 Subject: [PATCH] application-title-bar: refactor + package improvement --- .../by-name/ap/application-title-bar/package.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/ap/application-title-bar/package.nix b/pkgs/by-name/ap/application-title-bar/package.nix index 57de40bcf25f..c524066c857f 100644 --- a/pkgs/by-name/ap/application-title-bar/package.nix +++ b/pkgs/by-name/ap/application-title-bar/package.nix @@ -4,14 +4,14 @@ , kdePackages }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "application-title-bar"; version = "0.6.3"; src = fetchFromGitHub { owner = "antroids"; repo = "application-title-bar"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; hash = "sha256-r15wZCioWrTr5mA0WARFd4j8zwWIWU4wEv899RSURa4="; }; @@ -22,15 +22,15 @@ stdenv.mkDerivation rec { installPhase = '' runHook preInstall mkdir -p $out/share/plasma/plasmoids/com.github.antroids.application-title-bar - cp -r $src/package/* $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 ''; - meta = with lib; { + meta = { description = "KDE Plasma6 widget with window controls"; homepage = "https://github.com/antroids/application-title-bar"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ HeitorAugustoLN ]; - platforms = platforms.linux; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ HeitorAugustoLN ]; + inherit (kdePackages.kwindowsystem.meta) platforms; }; -} +})