linuxware/theming/catppuccin-qt5ct.nix

33 lines
837 B
Nix
Raw Normal View History

2024-04-04 15:24:35 -03:00
{ fetchFromGitHub, flavor ? "Mocha", lib, stdenvNoCC }:
let
validFlavors = [ "Frappe" "Latte" "Macchiato" "Mocha" ];
2023-11-05 04:53:31 -03:00
pname = "catppucin-qt5ct";
2024-04-04 15:24:35 -03:00
in lib.checkListOfEnum "${pname}: flavors" validFlavors [ flavor ]
2023-11-05 04:53:31 -03:00
2024-04-04 15:24:35 -03:00
stdenvNoCC.mkDerivation {
inherit pname;
version = "unstable-2023-10-24";
2023-11-05 04:53:31 -03:00
src = fetchFromGitHub {
owner = "catppuccin";
repo = "qt5ct";
rev = "89ee948e72386b816c7dad72099855fb0d46d41e";
sha256 = "sha256-t/uyK0X7qt6qxrScmkTU2TvcVJH97hSQuF0yyvSO/qQ=";
};
2023-11-05 04:53:31 -03:00
nativeBuildInputs = [ ];
buildInputs = [ ];
2023-11-05 04:53:31 -03:00
postPatch = ''
export HOME=$(mktemp -d)
cp -r themes/* $HOME/.config/qt5ct/colors/
'';
2023-11-05 04:53:31 -03:00
meta = with lib; {
description = "Catppuccin for qt5ct";
homepage = "https://github.com/catppuccin/qt5ct";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}