fluent-icons: Generate icons with nix

Unfortunately lutgen doesn't have transparency support added to its main
branch yet and there doesn't seem to be any indicator that this will
ever be added, so we'll have to use an alternative to avoid manually
compiling it.
This commit is contained in:
Donovan Glover 2024-08-16 00:56:37 -04:00
parent a896ce4232
commit a3cd945895
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -1,24 +1,30 @@
{ {
lib, lib,
stdenvNoCC, stdenvNoCC,
fetchzip, fluent-icon-theme,
fd,
inkscape,
}: }:
stdenvNoCC.mkDerivation { stdenvNoCC.mkDerivation {
pname = "fluent-icons"; pname = "fluent-icons";
version = "2024-01-02"; version = "2024-01-02";
src = fetchzip { dontUnpack = true;
url = "https://files.catbox.moe/1we56t.zip";
hash = "sha256-gs33iDv+u6O03a+/QvDtKt/aHduZww4F3Fm3F40d1GI="; nativeBuildInputs = [
stripRoot = false; fd
}; inkscape
fluent-icon-theme
];
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
mkdir -p $out cp ${fluent-icon-theme}/share/icons/Fluent/scalable/places/default-* .
cp -r * $out fd -e svg -x inkscape -w 512 -h 512 "{}" -o "{.}.png"
install -Dm644 *.png -t $out
runHook postInstall runHook postInstall
''; '';