mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
32 lines
870 B
Nix
32 lines
870 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-camo";
|
|
version = "2.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cactus";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-2iclQVkj813xW9Ff3yh5dxCun0LxsPn4YpSLeMwsNbY=";
|
|
};
|
|
|
|
vendorHash = "sha256-GbBFGbNxsijcUIogjSv8RcIQn6VQ+j21Qlm9eQWzTtc=";
|
|
|
|
ldflags = [ "-s" "-w" "-X=main.ServerVersion=${version}" ];
|
|
|
|
preCheck = ''
|
|
# requires network access
|
|
rm pkg/camo/proxy_{,filter_}test.go
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "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;
|
|
mainProgram = "go-camo";
|
|
maintainers = with maintainers; [ viraptor ];
|
|
};
|
|
}
|