diff options
author | isabel <isabel@isabelroses.com> | 2024-06-10 14:15:52 +0100 |
---|---|---|
committer | isabel <isabel@isabelroses.com> | 2024-06-10 14:16:25 +0100 |
commit | f91c4d43eaad88736dd27c3fe2c69cb6e43a5d92 (patch) | |
tree | 613c03b258eef45dc357f091a3a3822f1a5b4d01 /pkgs/data/themes/catppuccin-gtk/default.nix | |
parent | 3369c121872617068a879fad42bf5ba25f16c645 (diff) |
catppuccin-gtk: 0.7.5 -> 1.0.3
Diffstat (limited to 'pkgs/data/themes/catppuccin-gtk/default.nix')
-rw-r--r-- | pkgs/data/themes/catppuccin-gtk/default.nix | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/pkgs/data/themes/catppuccin-gtk/default.nix b/pkgs/data/themes/catppuccin-gtk/default.nix deleted file mode 100644 index 49fbade1a88ad..0000000000000 --- a/pkgs/data/themes/catppuccin-gtk/default.nix +++ /dev/null @@ -1,92 +0,0 @@ -{ lib -, stdenvNoCC -, fetchFromGitHub -, gtk3 -, colloid-gtk-theme -, gnome-themes-extra -, gtk-engine-murrine -, python3 -, sassc -, nix-update-script -, accents ? [ "blue" ] -, size ? "standard" -, tweaks ? [ ] -, variant ? "frappe" -}: -let - validAccents = [ "blue" "flamingo" "green" "lavender" "maroon" "mauve" "peach" "pink" "red" "rosewater" "sapphire" "sky" "teal" "yellow" ]; - validSizes = [ "standard" "compact" ]; - validTweaks = [ "black" "rimless" "normal" "float" ]; - validVariants = [ "latte" "frappe" "macchiato" "mocha" ]; - - pname = "catppuccin-gtk"; -in - -lib.checkListOfEnum "${pname}: theme accent" validAccents accents -lib.checkListOfEnum "${pname}: color variant" validVariants [variant] -lib.checkListOfEnum "${pname}: size variant" validSizes [size] -lib.checkListOfEnum "${pname}: tweaks" validTweaks tweaks - -stdenvNoCC.mkDerivation rec { - inherit pname; - version = "0.7.5"; - - src = fetchFromGitHub { - owner = "catppuccin"; - repo = "gtk"; - rev = "v${version}"; - hash = "sha256-DIeMdkEjIcPIf/EgE83F5URHY+lR2+hxdc4wSrruFJ8="; - }; - - nativeBuildInputs = [ gtk3 sassc ]; - - patches = [ - ./colloid-src-git-reset.patch - ]; - - buildInputs = [ - gnome-themes-extra - (python3.withPackages (ps: [ ps.catppuccin ])) - ]; - - propagatedUserEnvPkgs = [ gtk-engine-murrine ]; - - postUnpack = '' - rm -rf source/colloid - cp -r ${colloid-gtk-theme.src} source/colloid - chmod -R +w source/colloid - ''; - - postPatch = '' - patchShebangs --build colloid/install.sh colloid/build.sh - ''; - - dontConfigure = true; - dontBuild = true; - - installPhase = '' - runHook preInstall - - cp -r colloid colloid-base - mkdir -p $out/share/themes - export HOME=$(mktemp -d) - - python3 install.py ${variant} \ - ${lib.optionalString (accents != []) "--accent " + builtins.toString accents} \ - ${lib.optionalString (size != []) "--size " + size} \ - ${lib.optionalString (tweaks != []) "--tweaks " + builtins.toString tweaks} \ - --dest $out/share/themes - - runHook postInstall - ''; - - passthru.updateScript = nix-update-script { }; - - meta = with lib; { - description = "Soothing pastel theme for GTK"; - homepage = "https://github.com/catppuccin/gtk"; - license = licenses.gpl3Plus; - platforms = platforms.linux; - maintainers = with maintainers; [ fufexan dixslyf ]; - }; -} |