mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-18 02:31:01 +01:00
fluent-icons: Use lutgen transparency branch
It turns out that alternative solutions like dipc don't produce results as good as lutgen so the compile time trade-off should be worth it.
This commit is contained in:
parent
a3cd945895
commit
00f3365001
@ -4,8 +4,30 @@
|
|||||||
fluent-icon-theme,
|
fluent-icon-theme,
|
||||||
fd,
|
fd,
|
||||||
inkscape,
|
inkscape,
|
||||||
|
lutgen,
|
||||||
|
fetchFromGitHub,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
lutgen' = lutgen.overrideAttrs (oldAttrs: rec {
|
||||||
|
version = "0.8.3-unstable-2023-08-31";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ozwaldorf";
|
||||||
|
repo = "lutgen-rs";
|
||||||
|
rev = "transparency";
|
||||||
|
hash = "sha256-6jaRyZsp9GVYAihE8lcslwpDtcKJfC2KZbXw0MFJNRY=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoDeps = oldAttrs.cargoDeps.overrideAttrs (
|
||||||
|
lib.const {
|
||||||
|
name = "${oldAttrs.pname}-${version}-vendor.tar.gz";
|
||||||
|
inherit src;
|
||||||
|
outputHash = "sha256-GmGEq7uUvfKtMP8TyA3lnih8KuZCdd6req0fBMFoX/M=";
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
in
|
||||||
stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "fluent-icons";
|
pname = "fluent-icons";
|
||||||
version = "2024-01-02";
|
version = "2024-01-02";
|
||||||
@ -16,6 +38,7 @@ stdenvNoCC.mkDerivation {
|
|||||||
fd
|
fd
|
||||||
inkscape
|
inkscape
|
||||||
fluent-icon-theme
|
fluent-icon-theme
|
||||||
|
lutgen'
|
||||||
];
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -23,6 +46,7 @@ stdenvNoCC.mkDerivation {
|
|||||||
|
|
||||||
cp ${fluent-icon-theme}/share/icons/Fluent/scalable/places/default-* .
|
cp ${fluent-icon-theme}/share/icons/Fluent/scalable/places/default-* .
|
||||||
fd -e svg -x inkscape -w 512 -h 512 "{}" -o "{.}.png"
|
fd -e svg -x inkscape -w 512 -h 512 "{}" -o "{.}.png"
|
||||||
|
fd -e png -x lutgen apply -o "{}" -p monokai-base16 --transparency "{}"
|
||||||
|
|
||||||
install -Dm644 *.png -t $out
|
install -Dm644 *.png -t $out
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user