tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
pat: support libax25
Robert James Hernandez
2 years ago
4be0eae9
d90e8fdf
+22
-1
1 changed file
expand all
collapse all
unified
split
pkgs
applications
radio
pat
default.nix
+22
-1
pkgs/applications/radio/pat/default.nix
···
1
1
-
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, buildGoModule
4
4
+
, fetchFromGitHub
5
5
+
, libax25
6
6
+
, installShellFiles
7
7
+
}:
2
8
3
9
buildGoModule rec {
4
10
pname = "pat";
···
15
21
16
22
ldflags = [ "-s" "-w" ];
17
23
24
24
+
nativeBuildInputs = [
25
25
+
installShellFiles
26
26
+
];
27
27
+
28
28
+
buildInputs = lib.optional stdenv.isLinux [ libax25 ];
29
29
+
30
30
+
# Needed by wl2k-go go module for libax25 to include support for Linux' AX.25 stack by linking against libax25.
31
31
+
# ref: https://github.com/la5nta/wl2k-go/blob/abe3ae5bf6a2eec670a21672d461d1c3e1d4c2f3/transport/ax25/ax25.go#L11-L17
32
32
+
tags = lib.optionals stdenv.isLinux [ "libax25" ];
33
33
+
34
34
+
postInstall = ''
35
35
+
installManPage man/pat-configure.1 man/pat.1
36
36
+
'';
37
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
43
+
platforms = platforms.unix;
23
44
};
24
45
}