mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-02 05:05:43 +01:00
3119b789f8
Alejandra is written in Rust, has more tests than nixfmt, and handles non-trivial code examples in Nix better.
42 lines
858 B
Nix
42 lines
858 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
vips,
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "go-thumbnailer";
|
|
version = "0.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "donovanglover";
|
|
repo = pname;
|
|
rev = "${version}";
|
|
sha256 = "sha256-sgd5kNnDXcSesGT+OignZ+APjNSxSP0Z60dr8cWO6sU=";
|
|
};
|
|
|
|
buildInputs = [
|
|
vips
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
# proxyVendor = true;
|
|
vendorSha256 = "sha256-4zgsoExdhEqvycGerNVxZ6LnjeRRO+f6DhJdINR5ZyI=";
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/thumbnailers
|
|
substituteAll ${./go.thumbnailer} $out/share/thumbnailers/go.thumbnailer
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A cover thumbnailer written in Go for performance and reliability.";
|
|
homepage = "https://github.com/donovanglover/go-thumbnailer";
|
|
license = licenses.mit;
|
|
maintainers = [];
|
|
};
|
|
}
|