about summary refs log tree commit diff
path: root/pkgs/servers/http/go-camo
diff options
context:
space:
mode:
authorStanisław Pitucha <stan.pitucha@envato.com>2022-05-11 14:29:30 +1000
committerStanisław Pitucha <stan.pitucha@envato.com>2022-05-11 14:35:17 +1000
commit4c8fe91fb0bb87c8fe9edff91bb7f447ec56752e (patch)
tree77d16751a3334ab24f402e9e437756886870a763 /pkgs/servers/http/go-camo
parent78520c1fff36113a9a6fe340ce33f57bb2332b67 (diff)
go-camo: init at 2.4.0
Diffstat (limited to 'pkgs/servers/http/go-camo')
-rw-r--r--pkgs/servers/http/go-camo/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/servers/http/go-camo/default.nix b/pkgs/servers/http/go-camo/default.nix
new file mode 100644
index 0000000000000..2d1e09aa2775b
--- /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 ];
+  };
+}