Skip to content

Commit

Permalink
gruvbox-kvantum: init at 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
istudyatuni committed Nov 1, 2024
1 parent 6ed0ab5 commit edd7ce2
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9290,6 +9290,11 @@
github = "istoph";
githubId = 114227790;
};
istudyatuni = {
name = "Ilia";
github = "istudyatuni";
githubId = 43654815;
};
ius = {
email = "j.de.gram@gmail.com";
name = "Joerie de Gram";
Expand Down
47 changes: 47 additions & 0 deletions pkgs/by-name/gr/gruvbox-kvantum/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
stdenvNoCC,
fetchFromGitHub,
lib,
variant ? "Gruvbox-Dark-Brown",
}:
let
pname = "gruvbox-kvantum";
in
lib.checkListOfEnum "${pname}: variant"
[
"Gruvbox-Dark-Blue"
"Gruvbox-Dark-Brown"
"Gruvbox-Dark-Green"
"Gruvbox_Light_Blue"
"Gruvbox_Light_Brown"
"Gruvbox_Light_Green"
]
[ variant ]

stdenvNoCC.mkDerivation
{
inherit pname;
version = "1.1";

src = fetchFromGitHub {
owner = "sachnr";
repo = "gruvbox-kvantum-themes";
rev = "f47670be407c1f07c64890ad53884ee9977a7db1";
sha256 = "sha256-u2J4Zf9HuMjNCt3qVpgEffkytl/t277FzOvWL8Nm8os=";
};

installPhase = ''
runHook preInstall
mkdir -p $out/share/Kvantum
cp -a "${variant}" $out/share/Kvantum
runHook postInstall
'';

meta = {
description = "Gruvbox themes for kvantum";
homepage = "https://github.com/sachnr/gruvbox-kvantum-themes";
license = lib.licenses.gpl3;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ istudyatuni ];
};
}

0 comments on commit edd7ce2

Please sign in to comment.