nix-config/packages/webp-thumbnailer.nix
Donovan Glover 40c7b04a9a
chore: Clean up language specifiers
- Removed useless /* bash */ specifier
- Used new hyprlang specifier for Hyprland
- Removed or replaced old /* config */ specifiers
2024-07-18 11:00:34 -04:00

27 lines
743 B
Nix

{ lib
, stdenvNoCC
, libwebp
}:
stdenvNoCC.mkDerivation {
pname = "webp-thumbnailer";
version = "1.0.0";
dontUnpack = true;
postInstall = ''
mkdir -p $out/share/thumbnailers
echo "[Thumbnailer Entry]" >> $out/share/thumbnailers/webp.thumbnailer
echo "Exec=${libwebp}/bin/dwebp %i -scale %s 0 -o %o" >> $out/share/thumbnailers/webp.thumbnailer
echo "MimeType=image/x-webp;image/webp;" >> $out/share/thumbnailers/webp.thumbnailer
'';
meta = {
homepage = "https://github.com/liquuid/nautilus-webp-thumbnailer";
description = "Create thumbnails from webp files";
maintainers = with lib.maintainers; [ donovanglover ];
platforms = lib.platforms.linux;
};
}