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
-
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
0
0
0
0
0
0
2
3
buildGoModule rec {
4
pname = "pat";
···
15
16
ldflags = [ "-s" "-w" ];
17
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 ];
0
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
}