Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

109 lines
2.2 KiB
Nix

{
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 "colloid-gtk-theme: theme variants"
[
"default"
"purple"
"pink"
"red"
"orange"
"yellow"
"green"
"teal"
"grey"
"all"
]
themeVariants
lib.checkListOfEnum
"colloid-gtk-theme: color variants"
[ "standard" "light" "dark" ]
colorVariants
lib.checkListOfEnum
"colloid-gtk-theme: size variants"
[ "standard" "compact" ]
sizeVariants
lib.checkListOfEnum
"colloid-gtk-theme: tweaks"
[
"nord"
"dracula"
"gruvbox"
"everforest"
"catppuccin"
"all"
"black"
"rimless"
"normal"
"float"
]
tweaks
stdenvNoCC.mkDerivation
rec {
inherit pname;
version = "2025-07-31";
src = fetchFromGitHub {
owner = "vinceliuice";
repo = "colloid-gtk-theme";
tag = version;
hash = "sha256-0pXbeeBAkk6v2DBWfUYhWWdyrQhgr/JfDbhyS33maMM=";
};
nativeBuildInputs = [
jdupes
sassc
];
buildInputs = [
gnome-themes-extra
];
propagatedUserEnvPkgs = [
gtk-engine-murrine
];
postPatch = ''
patchShebangs install.sh
'';
installPhase = ''
runHook preInstall
name= HOME="$TMPDIR" ./install.sh \
${lib.optionalString (themeVariants != [ ]) "--theme " + toString themeVariants} \
${lib.optionalString (colorVariants != [ ]) "--color " + toString colorVariants} \
${lib.optionalString (sizeVariants != [ ]) "--size " + toString sizeVariants} \
${lib.optionalString (tweaks != [ ]) "--tweaks " + toString tweaks} \
--dest $out/share/themes
jdupes --quiet --link-soft --recurse $out/share
runHook postInstall
'';
meta = with lib; {
description = "Modern and clean Gtk theme";
homepage = "https://github.com/vinceliuice/Colloid-gtk-theme";
license = licenses.gpl3Only;
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
};
}