2024-04-17 01:50:54 +02:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
2023-08-24 23:25:24 +02:00
|
|
|
, libwebp
|
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
postInstall = /* bash */ ''
|
|
|
|
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-04-17 01:50:54 +02:00
|
|
|
meta = with lib; {
|
2023-08-24 23:25:24 +02:00
|
|
|
homepage = "https://github.com/liquuid/nautilus-webp-thumbnailer";
|
|
|
|
description = "Create thumbnails from webp files";
|
2024-04-17 01:50:54 +02:00
|
|
|
maintainers = with maintainers; [ donovanglover ];
|
|
|
|
platforms = platforms.linux;
|
2023-08-24 23:25:24 +02:00
|
|
|
};
|
|
|
|
}
|