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