diff --git a/pkgs/servers/http/go-camo/default.nix b/pkgs/servers/http/go-camo/default.nix new file mode 100644 index 000000000000..2d1e09aa2775 --- /dev/null +++ b/pkgs/servers/http/go-camo/default.nix @@ -0,0 +1,25 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "go-camo"; + version = "2.4.0"; + + src = fetchFromGitHub { + owner = "cactus"; + repo = pname; + rev = "v${version}"; + sha256 = "1Wzy5EHFJAPnxusUBvNoJnXyVAx/LiiTgIQZE9r01Lw="; + }; + + vendorSha256 = "31B6LXCutIdPwxqMFTMUfxAaCuYW14py8Vu1EycBydE="; + + ldflags = [ "-s" "-w" "-X=main.ServerVersion=${version}" ]; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7eedb84359bc..23b0bf1c9f9d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21745,6 +21745,8 @@ with pkgs; nats-server = callPackage ../servers/nats-server { }; + go-camo = callPackage ../servers/http/go-camo { }; + gofish = callPackage ../servers/gopher/gofish { }; grafana = callPackage ../servers/monitoring/grafana { };