Files
nixpkgs/pkgs/by-name/rd/rdpgw/package.nix
Fabian Affolter 8acfa0cc23 rdpgw: init at 2.2.0
Remote Desktop Gateway

https://github.com/bolkedebruin/rdpgw
2026-01-29 20:52:35 +01:00

42 lines
850 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
pam,
pkg-config,
}:
buildGoModule (finalAttrs: {
pname = "rdpgw";
version = "2.2.0";
src = fetchFromGitHub {
owner = "bolkedebruin";
repo = "rdpgw";
tag = "v${finalAttrs.version}";
hash = "sha256-V0TmRo0MBYrpyn7kmazU93prMOvkkI5/x15P7gV88lA=";
};
patches = [ ./go-sum.patch ];
vendorHash = "sha256-KH3c8IAFkXCDLleRTiTnXx+q6LpLl6oTswwmLZPUUSI=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ pam ];
ldflags = [
"-s"
"-w"
];
meta = {
description = "Remote Desktop Gateway";
homepage = "https://github.com/bolkedebruin/rdpgw";
changelog = "https://github.com/bolkedebruin/rdpgw/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "rdpgw";
};
})