2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gnome-themes-extra
|
|
|
|
, gtk-engine-murrine
|
|
|
|
, jdupes
|
|
|
|
, sassc
|
|
|
|
, themeVariants ? [] # default: blue
|
|
|
|
, colorVariants ? [] # default: all
|
|
|
|
, sizeVariants ? [] # default: standard
|
|
|
|
, tweaks ? []
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "colloid-gtk-theme";
|
|
|
|
|
|
|
|
in
|
|
|
|
lib.checkListOfEnum "${pname}: theme variants" [ "default" "purple" "pink" "red" "orange" "yellow" "green" "teal" "grey" "all" ] themeVariants
|
|
|
|
lib.checkListOfEnum "${pname}: color variants" [ "standard" "light" "dark" ] colorVariants
|
|
|
|
lib.checkListOfEnum "${pname}: size variants" [ "standard" "compact" ] sizeVariants
|
2024-06-20 14:57:18 +00:00
|
|
|
lib.checkListOfEnum "${pname}: tweaks" [ "nord" "dracula" "gruvbox" "everforest" "catppuccin" "all" "black" "rimless" "normal" "float" ] tweaks
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
inherit pname;
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "2024-06-18";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vinceliuice";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-2saj/QfiYCxthGHauaSvRv9VVptlKbXoRTMYs3FWZsc=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
jdupes
|
|
|
|
sassc
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gnome-themes-extra
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedUserEnvPkgs = [
|
|
|
|
gtk-engine-murrine
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2023-04-12 12:48:02 +00:00
|
|
|
patchShebangs install.sh
|
2022-08-12 12:06:08 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
name= HOME="$TMPDIR" ./install.sh \
|
|
|
|
${lib.optionalString (themeVariants != []) "--theme " + builtins.toString themeVariants} \
|
|
|
|
${lib.optionalString (colorVariants != []) "--color " + builtins.toString colorVariants} \
|
|
|
|
${lib.optionalString (sizeVariants != []) "--size " + builtins.toString sizeVariants} \
|
|
|
|
${lib.optionalString (tweaks != []) "--tweaks " + builtins.toString tweaks} \
|
|
|
|
--dest $out/share/themes
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
jdupes --quiet --link-soft --recurse $out/share
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Modern and clean Gtk theme";
|
2022-08-12 12:06:08 +00:00
|
|
|
homepage = "https://github.com/vinceliuice/Colloid-gtk-theme";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|