pat: support libax25

+22 -1
+22 -1
pkgs/applications/radio/pat/default.nix
··· 1 - { lib, stdenv, buildGoModule, fetchFromGitHub }: 2 3 buildGoModule rec { 4 pname = "pat"; ··· 15 16 ldflags = [ "-s" "-w" ]; 17 18 meta = with lib; { 19 description = "Pat is a cross platform Winlink client written in Go."; 20 homepage = "https://getpat.io/"; 21 license = licenses.mit; 22 maintainers = with maintainers; [ dotemup ]; 23 }; 24 }
··· 1 + { lib 2 + , stdenv 3 + , buildGoModule 4 + , fetchFromGitHub 5 + , libax25 6 + , installShellFiles 7 + }: 8 9 buildGoModule rec { 10 pname = "pat"; ··· 21 22 ldflags = [ "-s" "-w" ]; 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 + 38 meta = with lib; { 39 description = "Pat is a cross platform Winlink client written in Go."; 40 homepage = "https://getpat.io/"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ dotemup ]; 43 + platforms = platforms.unix; 44 }; 45 }