2023-06-06 02:37:52 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pkg-config,
|
|
|
|
vips,
|
2023-06-02 15:25:41 +02:00
|
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-thumbnailer";
|
|
|
|
version = "0.1.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "donovanglover";
|
|
|
|
repo = pname;
|
2023-06-09 05:15:00 +02:00
|
|
|
rev = version;
|
2023-06-02 15:29:17 +02:00
|
|
|
sha256 = "sha256-sgd5kNnDXcSesGT+OignZ+APjNSxSP0Z60dr8cWO6sU=";
|
2023-06-02 15:25:41 +02:00
|
|
|
};
|
|
|
|
|
2023-06-02 15:29:17 +02:00
|
|
|
buildInputs = [
|
|
|
|
vips
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
vendorSha256 = "sha256-4zgsoExdhEqvycGerNVxZ6LnjeRRO+f6DhJdINR5ZyI=";
|
2023-06-02 15:25:41 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/thumbnailers
|
|
|
|
substituteAll ${./go.thumbnailer} $out/share/thumbnailers/go.thumbnailer
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-06-09 13:30:45 +02:00
|
|
|
description = "A cover thumbnailer written in Go for performance and reliability";
|
2023-06-02 15:25:41 +02:00
|
|
|
homepage = "https://github.com/donovanglover/go-thumbnailer";
|
|
|
|
license = licenses.mit;
|
2023-06-09 13:30:45 +02:00
|
|
|
maintainers = with maintainers; [donovanglover];
|
2023-06-02 15:25:41 +02:00
|
|
|
};
|
|
|
|
}
|