nixpkgs/pkgs/by-name/go/go-camo/package.nix

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

31 lines
845 B
Nix
Raw Normal View History

2022-05-11 04:29:30 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "go-camo";
2023-10-24 11:46:45 +00:00
version = "2.4.5";
2022-05-11 04:29:30 +00:00
src = fetchFromGitHub {
owner = "cactus";
repo = pname;
rev = "v${version}";
2023-10-24 11:46:45 +00:00
sha256 = "sha256-qELWl8kWQzgwQ8Mwp7MAxlYhHV6Us3kTuMjKVwJjZFs=";
2022-05-11 04:29:30 +00:00
};
2023-10-24 11:46:45 +00:00
vendorHash = "sha256-PF7WqA3hdV+eFu++eoCo1m2m4o92vUtArH0uS+rjxGU=";
2022-05-11 04:29:30 +00:00
ldflags = [ "-s" "-w" "-X=main.ServerVersion=${version}" ];
preCheck = ''
# requires network access
rm pkg/camo/proxy_{,filter_}test.go
'';
2022-05-11 04:29:30 +00: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 ];
};
}