Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
vips,
|
|
gobject-introspection,
|
|
stdenv,
|
|
libunwind,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "imgproxy";
|
|
version = "3.30.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "imgproxy";
|
|
repo = "imgproxy";
|
|
hash = "sha256-vT+Nyjx2TTOCzosCV/EfMLEnyT6RCebBFNu0/IRuwak=";
|
|
rev = "v${version}";
|
|
};
|
|
|
|
vendorHash = "sha256-0NIsaSMOBenDCGvnGdLB60sp08EaC/CezWogxTrcDdY=";
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [ vips ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libunwind ];
|
|
|
|
preBuild = ''
|
|
export CGO_LDFLAGS_ALLOW='-(s|w)'
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Fast and secure on-the-fly image processing server written in Go";
|
|
mainProgram = "imgproxy";
|
|
homepage = "https://imgproxy.net";
|
|
changelog = "https://github.com/imgproxy/imgproxy/blob/${src.rev}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ paluh ];
|
|
};
|
|
}
|