alpaca-proxy: init at 2.0.9

This commit is contained in:
Armin 2024-08-03 20:56:20 +02:00
parent 4635f43856
commit 04812261f5

View File

@ -0,0 +1,39 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "alpaca-proxy";
version = "2.0.9";
src = fetchFromGitHub {
owner = "samuong";
repo = "alpaca";
rev = "v${version}";
hash = "sha256-Rf8//4FeruVZZ//uba80z20XGUxycwF91Aa09fosRXI=";
};
vendorHash = "sha256-JEiHgyPJvWmtPf8R4aX/qlevfZRdKajre324UsgRm5Y=";
ldflags = [
"-s"
"-w"
"-X=main.BuildVersion=v${version}"
];
postInstall = ''
# executable is renamed to alpaca-proxy, to avoid collision with the alpaca python application
mv $out/bin/alpaca $out/bin/alpaca-proxy
'';
meta = with lib; {
description = "HTTP forward proxy with PAC and NTLM authentication support";
homepage = "https://github.com/samuong/alpaca";
changelog = "https://github.com/samuong/alpaca/releases/tag/v${src.rev}";
license = licenses.asl20;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ _1nv0k32 ];
mainProgram = "alpaca-proxy";
};
}