diff --git a/pkgs/by-name/co/colloid-gtk-theme/package.nix b/pkgs/by-name/co/colloid-gtk-theme/package.nix new file mode 100644 index 000000000000..7439299b2e6a --- /dev/null +++ b/pkgs/by-name/co/colloid-gtk-theme/package.nix @@ -0,0 +1,103 @@ +{ + lib, + stdenvNoCC, + fetchFromGitHub, + 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 + (finalAttrs: { + inherit pname; + version = "2025-07-31"; + + src = fetchFromGitHub { + owner = "vinceliuice"; + repo = "colloid-gtk-theme"; + tag = finalAttrs.version; + hash = "sha256-0pXbeeBAkk6v2DBWfUYhWWdyrQhgr/JfDbhyS33maMM="; + }; + + nativeBuildInputs = [ + jdupes + sassc + ]; + + postPatch = '' + patchShebangs install.sh + + sed -i '/"$THEME_DIR\/gtk-2.0/d' 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 = { + description = "Modern and clean Gtk theme"; + homepage = "https://github.com/vinceliuice/Colloid-gtk-theme"; + license = lib.licenses.gpl3Only; + platforms = lib.platforms.unix; + maintainers = [ + lib.maintainers.chvp + lib.maintainers.romildo + ]; + }; + }) diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 8136fbc74b0d..fbf39bc797ba 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -576,7 +576,6 @@ mapAliases { code-browser-qt = throw "'code-browser-qt' has been removed, as it was broken since 22.11"; # Added 2025-08-22 CoinMP = throw "'CoinMP' has been renamed to/replaced by 'coinmp'"; # Converted to throw 2025-10-27 collada2gltf = throw "collada2gltf has been removed from Nixpkgs, as it has been unmaintained upstream for 5 years and does not build with supported GCC versions"; # Addd 2025-08-08 - colloid-gtk-theme = throw "'colloid-gtk-theme' has been removed because it depended on 'gtk-engine-murrine', which was removed because it was unmaintained upstream and depended on GTK 2."; # Added 2026-07-22 colloid-kde = throw "'colloid-kde' has been removed, as it is only compatible with Plasma 5, which is EOL"; # Added 2025-08-20 colorstorm = throw "'colorstorm' has been removed because it was unmaintained in nixpkgs and upstream was rewritten."; # Added 2025-06-15 commonsBcel = warnAlias "'commonsBcel' has been renamed to 'commons-bcel'" commons-bcel; # Added 2026-02-08