depot/pkgs/by-name/ka/kara/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

39 lines
962 B
Nix

{
stdenv,
lib,
fetchFromGitHub,
nix-update-script,
kdePackages,
...
}:
stdenv.mkDerivation (finalAttrs: {
pname = "kara";
version = "0.7.3";
src = fetchFromGitHub {
owner = "dhruv8sh";
repo = "kara";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-an0tA1YQU/wpaY4y6lQfOFiUYm6aLmVTC1M5sukARVA=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/plasma/plasmoids/org.dhruv8sh.kara
cp metadata.json $out/share/plasma/plasmoids/org.dhruv8sh.kara
cp -r contents $out/share/plasma/plasmoids/org.dhruv8sh.kara
runHook postInstall
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "KDE Plasma Applet for use as a desktop/workspace pager";
homepage = "https://github.com/dhruv8sh/kara";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ HeitorAugustoLN ];
inherit (kdePackages.kwindowsystem.meta) platforms;
};
})