Files
homelab/pkgs/azure-glassy-dark-icons.nix
T
darmanandClaude Sonnet 5 6f24ab69ad docs: condense comments across the repo
Comments had drifted into multi-paragraph narrative (git commit
lineage, debugging stories, restated code) in several hot spots
(scripts/deploy, hermes-agent.nix, flake.nix, gitea.nix, headscale.nix).
Trim every comment to its load-bearing "why" — gotchas, safety
warnings, and non-obvious rationale survive verbatim in substance,
just tightened to 1-2 sentences; historical narrative and anything
already covered in CLAUDE.md is cut. No code/logic changed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UJqEmY1y3AYX3JoX4Y6b21
2026-09-18 21:36:30 +02:00

47 lines
1.8 KiB
Nix

{ lib, stdenvNoCC, gtk3 }:
# Azure-Glassy-Dark-Icons (gnome-look.org/p/2154036), not packaged in
# nixpkgs. gnome-look/pling download links are signed JWTs that expire in
# ~2 days (`exp` claim on the URL was ~48h out from issuance) — fetchurl
# against one would work today and fail on the next rebuild after that
# window with no warning. The tarball is vendored into the repo instead, as
# verified (md5 d218b358086ee7f68cb5e98c53e9efaf against the gnome-look API's
# reported checksum) at dotfiles/icons/Azure-Glassy-Dark-Icons.tar.xz.
stdenvNoCC.mkDerivation {
pname = "azure-glassy-dark-icons";
version = "unstable-2026-07-12";
src = ../dotfiles/icons/Azure-Glassy-Dark-Icons.tar.xz;
nativeBuildInputs = [ gtk3 ];
dontBuild = true;
# Upstream ships a handful of dangling symlinks under mimetypes/16 (e.g. a
# target that doesn't exist in that size dir) — harmless, GTK's own
# Inherits= chain (breeze-dark, breeze, Adwaita, hicolor) covers the
# fallback. Nixpkgs' default noBrokenSymlinks check would otherwise fail
# the build over it.
dontCheckForBrokenSymlinks = true;
# gtk3's setup hook strips icon-theme.cache from $out by default
# (postFixup); papirus-icon-theme opts back out the same way rather than
# let the freshly regenerated cache get thrown away.
dontDropIconThemeCache = true;
installPhase = ''
runHook preInstall
mkdir -p "$out/share/icons"
cp -r . "$out/share/icons/Azure-Glassy-Dark-Icons"
gtk-update-icon-cache --force "$out/share/icons/Azure-Glassy-Dark-Icons"
runHook postInstall
'';
meta = {
description = "Azure-Glassy dark icon theme, vendored from gnome-look.org (not packaged in nixpkgs)";
homepage = "https://www.gnome-look.org/p/2154036";
license = lib.licenses.gpl3Only;
platforms = lib.platforms.all;
};
}