Files
nixpkgs/pkgs/by-name/al/alpaca-proxy/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

40 lines
1008 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "alpaca-proxy";
version = "2.0.11";
src = fetchFromGitHub {
owner = "samuong";
repo = "alpaca";
tag = "v${version}";
hash = "sha256-74JQ9ltJ7+sasySgNN3AaXlBILP7VgFN06adoNJG+Bc=";
};
vendorHash = "sha256-N9qpyCQg6H1v/JGJ2wCxDX+ZTM9x6/BM6wQ26xC+dlE=";
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";
};
}