2022-06-16 17:23:12 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-camo";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2.5.1";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cactus";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
sha256 = "sha256-xNdikp3Kd/VAzn7QjqIrNvifFI0mMTJ5U+zk+QbJAk0=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
vendorHash = "sha256-xN0FJntfQ2V2IsxD8dEi0vR+psnjGR7G6+ssxNTuzc4=";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X=main.ServerVersion=${version}" ];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
# requires network access
|
|
|
|
rm pkg/camo/proxy_{,filter_}test.go
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Camo server is a special type of image proxy that proxies non-secure images over SSL/TLS";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://github.com/cactus/go-camo";
|
|
|
|
changelog = "https://github.com/cactus/go-camo/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
2024-01-13 08:15:51 +00:00
|
|
|
mainProgram = "go-camo";
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ viraptor ];
|
|
|
|
};
|
|
|
|
}
|