2024-08-03 19:41:16 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenvNoCC,
|
|
|
|
libwebp,
|
2023-08-24 23:25:24 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
pname = "webp-thumbnailer";
|
|
|
|
version = "1.0.0";
|
|
|
|
|
2024-04-03 01:11:38 +02:00
|
|
|
dontUnpack = true;
|
2023-08-24 23:25:24 +02:00
|
|
|
|
2024-07-18 16:30:16 +02:00
|
|
|
postInstall = ''
|
2023-08-24 23:25:24 +02:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2024-06-21 06:40:19 +02:00
|
|
|
meta = {
|
2023-08-24 23:25:24 +02:00
|
|
|
homepage = "https://github.com/liquuid/nautilus-webp-thumbnailer";
|
|
|
|
description = "Create thumbnails from webp files";
|
2024-06-21 06:40:19 +02:00
|
|
|
maintainers = with lib.maintainers; [ donovanglover ];
|
|
|
|
platforms = lib.platforms.linux;
|
2023-08-24 23:25:24 +02:00
|
|
|
};
|
|
|
|
}
|