3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/http/go-camo/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
847 B
Nix
Raw Normal View History

2022-05-11 05:29:30 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "go-camo";
2022-09-29 15:22:43 +01:00
version = "2.4.1";
2022-05-11 05:29:30 +01:00
src = fetchFromGitHub {
owner = "cactus";
repo = pname;
rev = "v${version}";
2022-09-29 15:22:43 +01:00
sha256 = "sha256-3gjn8UAfj7jT/gncgXShrfI75DPwiNU4hHMVJlYDIPA=";
2022-05-11 05:29:30 +01:00
};
2022-09-29 15:22:43 +01:00
vendorSha256 = "sha256-31B6LXCutIdPwxqMFTMUfxAaCuYW14py8Vu1EycBydE=";
2022-05-11 05:29:30 +01:00
ldflags = [ "-s" "-w" "-X=main.ServerVersion=${version}" ];
preCheck = ''
# requires network access
rm pkg/camo/proxy_{,filter_}test.go
'';
2022-05-11 05:29:30 +01:00
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 ];
};
}