mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
32 lines
874 B
Nix
32 lines
874 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-camo";
|
|
version = "2.4.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cactus";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-d2W7XI/4MKyn9PgIYUJKew/WWA9z5Ut78bsk6Z5Qfxk=";
|
|
};
|
|
|
|
vendorHash = "sha256-BGQ+2i3HQCKOSUTl2+xaQqQQE7MCtmJ1IHL2ZRz5whk=";
|
|
|
|
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;
|
|
mainProgram = "go-camo";
|
|
maintainers = with maintainers; [ viraptor ];
|
|
};
|
|
}
|