mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 00:03:55 +01:00
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:
parent
a896ce4232
commit
a3cd945895
@ -1,24 +1,30 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchzip,
|
||||
fluent-icon-theme,
|
||||
fd,
|
||||
inkscape,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "fluent-icons";
|
||||
version = "2024-01-02";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://files.catbox.moe/1we56t.zip";
|
||||
hash = "sha256-gs33iDv+u6O03a+/QvDtKt/aHduZww4F3Fm3F40d1GI=";
|
||||
stripRoot = false;
|
||||
};
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
fd
|
||||
inkscape
|
||||
fluent-icon-theme
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out
|
||||
cp -r * $out
|
||||
cp ${fluent-icon-theme}/share/icons/Fluent/scalable/places/default-* .
|
||||
fd -e svg -x inkscape -w 512 -h 512 "{}" -o "{.}.png"
|
||||
|
||||
install -Dm644 *.png -t $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user