pat: support libax25

+22 -1
+22 -1
pkgs/applications/radio/pat/default.nix
··· 1 - { lib, stdenv, buildGoModule, fetchFromGitHub }: 1 + { lib 2 + , stdenv 3 + , buildGoModule 4 + , fetchFromGitHub 5 + , libax25 6 + , installShellFiles 7 + }: 2 8 3 9 buildGoModule rec { 4 10 pname = "pat"; ··· 15 21 16 22 ldflags = [ "-s" "-w" ]; 17 23 24 + nativeBuildInputs = [ 25 + installShellFiles 26 + ]; 27 + 28 + buildInputs = lib.optional stdenv.isLinux [ libax25 ]; 29 + 30 + # Needed by wl2k-go go module for libax25 to include support for Linux' AX.25 stack by linking against libax25. 31 + # ref: https://github.com/la5nta/wl2k-go/blob/abe3ae5bf6a2eec670a21672d461d1c3e1d4c2f3/transport/ax25/ax25.go#L11-L17 32 + tags = lib.optionals stdenv.isLinux [ "libax25" ]; 33 + 34 + postInstall = '' 35 + installManPage man/pat-configure.1 man/pat.1 36 + ''; 37 + 18 38 meta = with lib; { 19 39 description = "Pat is a cross platform Winlink client written in Go."; 20 40 homepage = "https://getpat.io/"; 21 41 license = licenses.mit; 22 42 maintainers = with maintainers; [ dotemup ]; 43 + platforms = platforms.unix; 23 44 }; 24 45 }