mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
kpx: init at 1.13.0
Kerberos proxy with dynamic proxy selection https://github.com/momiji/kpx
This commit is contained in:
52
pkgs/by-name/kp/kpx/package.nix
Normal file
52
pkgs/by-name/kp/kpx/package.nix
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "kpx";
|
||||
version = "1.13.0";
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "momiji";
|
||||
repo = "kpx";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-D5SfWE/58L9G2miwx+hmcGCTCq6kHMOEnZ/4z0bMVzs=";
|
||||
};
|
||||
|
||||
vendorHash = null;
|
||||
|
||||
subPackages = [ "cli" ];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-X=github.com/momiji/kpx.AppVersion=${finalAttrs.version}"
|
||||
];
|
||||
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
|
||||
doInstallCheck = true;
|
||||
|
||||
# Tests are container-based
|
||||
doCheck = false;
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/cli $out/bin/kpx
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Kerberos proxy with dynamic proxy selection";
|
||||
homepage = "https://github.com/momiji/kpx";
|
||||
changelog = "https://github.com/momiji/kpx/blob/${finalAttrs.src.rev}/CHANGELOG_old.md";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
mainProgram = "kpx";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user