2024-08-03 19:41:16 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenvNoCC,
|
2024-08-16 06:56:37 +02:00
|
|
|
fluent-icon-theme,
|
|
|
|
fd,
|
|
|
|
inkscape,
|
2024-08-16 07:56:59 +02:00
|
|
|
lutgen,
|
|
|
|
fetchFromGitHub,
|
2023-08-08 03:33:18 +02:00
|
|
|
}:
|
|
|
|
|
2024-08-16 07:56:59 +02:00
|
|
|
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=";
|
|
|
|
};
|
|
|
|
|
2024-09-13 00:15:01 +02:00
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd lutgen \
|
|
|
|
--bash <($out/bin/lutgen completions bash) \
|
|
|
|
--fish <($out/bin/lutgen completions fish) \
|
|
|
|
--zsh <($out/bin/lutgen completions zsh)
|
|
|
|
'';
|
|
|
|
|
2024-08-16 07:56:59 +02:00
|
|
|
cargoDeps = oldAttrs.cargoDeps.overrideAttrs (
|
|
|
|
lib.const {
|
|
|
|
name = "${oldAttrs.pname}-${version}-vendor.tar.gz";
|
|
|
|
inherit src;
|
|
|
|
outputHash = "sha256-GmGEq7uUvfKtMP8TyA3lnih8KuZCdd6req0fBMFoX/M=";
|
|
|
|
}
|
|
|
|
);
|
|
|
|
});
|
|
|
|
in
|
2023-08-08 03:33:18 +02:00
|
|
|
stdenvNoCC.mkDerivation {
|
2024-01-03 00:51:49 +01:00
|
|
|
pname = "fluent-icons";
|
2024-01-06 01:06:20 +01:00
|
|
|
version = "2024-01-02";
|
2023-08-08 03:33:18 +02:00
|
|
|
|
2024-08-16 06:56:37 +02:00
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
fd
|
|
|
|
inkscape
|
|
|
|
fluent-icon-theme
|
2024-08-16 07:56:59 +02:00
|
|
|
lutgen'
|
2024-08-16 06:56:37 +02:00
|
|
|
];
|
2023-08-08 03:33:18 +02:00
|
|
|
|
2024-04-21 17:17:34 +02:00
|
|
|
installPhase = ''
|
2023-08-08 03:33:18 +02:00
|
|
|
runHook preInstall
|
|
|
|
|
2024-08-16 06:56:37 +02:00
|
|
|
cp ${fluent-icon-theme}/share/icons/Fluent/scalable/places/default-* .
|
2024-08-16 08:37:31 +02:00
|
|
|
fd -e svg -x inkscape -w 128 -h 128 "{}" -o "{.}.png"
|
2024-08-16 07:56:59 +02:00
|
|
|
fd -e png -x lutgen apply -o "{}" -p monokai-base16 --transparency "{}"
|
2024-08-16 06:56:37 +02:00
|
|
|
|
|
|
|
install -Dm644 *.png -t $out
|
2023-08-08 03:33:18 +02:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2024-06-21 06:40:19 +02:00
|
|
|
meta = {
|
2024-01-03 00:51:49 +01:00
|
|
|
description = "Fluent folder icons converted to png";
|
2024-04-17 01:50:54 +02:00
|
|
|
homepage = "https://github.com/vinceliuice/Fluent-icon-theme";
|
2024-06-21 06:40:19 +02:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [ donovanglover ];
|
|
|
|
platforms = lib.platforms.all;
|
2023-08-08 03:33:18 +02:00
|
|
|
};
|
|
|
|
}
|