depot/pkgs/by-name/al/alpaca-proxy/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

39 lines
1,007 B
Nix

{
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";
};
}