1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 perl,
6}:
7
8stdenv.mkDerivation {
9 pname = "aprx";
10 version = "2.9.1-unstable-2021-09-21";
11
12 src = fetchFromGitHub {
13 owner = "PhirePhly";
14 repo = "aprx";
15 rev = "2c84448fe6d897980234961a87ee4c1d4fad69ec";
16 hash = "sha256-01PB7FaG8GmPm1U15/3g1CfQwdYmf3ThZFdVh2zUAl4=";
17 };
18
19 nativeBuildInputs = [ perl ];
20
21 env.NIX_CFLAGS_COMPILE = toString ([
22 "-fcommon"
23 "-O2"
24 "-Wno-implicit-int" # clang, gcc 14
25 ]);
26
27 configureFlags = [
28 "--with-erlangstorage"
29 "--sbindir=$(out)/bin"
30 "--sysconfdir=$(out)/etc"
31 "--mandir=$(out)/share/man"
32 ];
33
34 makeFlags = [ "INSTALL=install" ];
35
36 preInstall = ''
37 mkdir -p $out/bin $out/share/man/man8 $out/etc
38 '';
39
40 meta = with lib; {
41 description = "Multitalented APRS i-gate / digipeater";
42 homepage = "http://thelifeofkenneth.com/aprx";
43 license = licenses.bsd3;
44 maintainers = with maintainers; [ sarcasticadmin ];
45 mainProgram = "aprx";
46 platforms = platforms.unix;
47 };
48}