Skip to content

Commit

Permalink
Merge pull request #172447 from viraptor/add-go-camo
Browse files Browse the repository at this point in the history
go-camo: init at 2.4.0
  • Loading branch information
SuperSandro2000 authored May 24, 2022
2 parents 1daa1ed + 4c8fe91 commit 5ce6597
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pkgs/servers/http/go-camo/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21743,6 +21743,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 { };
Expand Down

0 comments on commit 5ce6597

Please sign in to comment.