b5f92a349c
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
30 lines
845 B
Nix
30 lines
845 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-camo";
|
|
version = "2.4.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cactus";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-27kAVuFJaGKt7q9E2tchAD6kSukO4xkhU+1JTPfT3Qk=";
|
|
};
|
|
|
|
vendorHash = "sha256-LVQnQ8Tpkzpc6aUsUgwz2xTttccHynJPsQKvWGiRAIU=";
|
|
|
|
ldflags = [ "-s" "-w" "-X=main.ServerVersion=${version}" ];
|
|
|
|
preCheck = ''
|
|
# requires network access
|
|
rm pkg/camo/proxy_{,filter_}test.go
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A camo server is a special type of image proxy that proxies non-secure images over SSL/TLS";
|
|
homepage = "https://github.com/cactus/go-camo";
|
|
changelog = "https://github.com/cactus/go-camo/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ viraptor ];
|
|
};
|
|
}
|