Compare commits

...

1 Commits

Author SHA1 Message Date
5667f0786f
pkgs/pymultimonaprs: init and enable config on europa 2023-07-26 07:33:33 -06:00
3 changed files with 70 additions and 0 deletions

View File

@ -301,6 +301,8 @@
}; };
hpi = hpi =
upkgs.python3Packages.callPackage ./pkgs/hpi.nix {inherit upkgs;}; upkgs.python3Packages.callPackage ./pkgs/hpi.nix {inherit upkgs;};
pymultimonaprs =
upkgs.python3Packages.callPackage ./pkgs/pymultimonaprs.nix {inherit upkgs;};
promnesia = upkgs.python3Packages.callPackage ./pkgs/promnesia.nix { promnesia = upkgs.python3Packages.callPackage ./pkgs/promnesia.nix {
inherit upkgs; inherit upkgs;
}; };

View File

@ -104,6 +104,39 @@ in {
boot.binfmt.emulatedSystems = ["aarch64-linux" "riscv64-linux"]; boot.binfmt.emulatedSystems = ["aarch64-linux" "riscv64-linux"];
environment.etc."pymultimonaprs.json".text = let
aprsConf = {
callsign = "KD0WKW-4";
passcode = "17318";
gateway = [
"noam.aprs2.net:14580"
];
source = "rtl";
rtl = {
freq = 144.390;
ppm = 0;
gain = 0;
offset_tuning = false;
device_index = 0;
};
beacon = {
lat = 38.3035;
lng = -104.8118;
table = "R";
symbol = "&";
comment = "NixOS iGate";
status = {
text = "RX only mode on Raspberry Pi + RTL";
file = false;
};
weather = false;
send_every = 300;
ambiguity = 0.01;
};
};
in
builtins.toJSON aprsConf;
nixpkgs.config = { nixpkgs.config = {
allowUnfree = true; allowUnfree = true;
allowUnsupportedSystem = true; allowUnsupportedSystem = true;
@ -344,6 +377,7 @@ in {
alembic alembic
; ;
}) })
(pkgs.python3Packages.callPackage ../../pkgs/pymultimonaprs.nix {})
(callPackage ../../pkgs/gokrazy.nix {}) (callPackage ../../pkgs/gokrazy.nix {})
(callPackage ../../pkgs/zutty.nix {}) (callPackage ../../pkgs/zutty.nix {})

34
pkgs/pymultimonaprs.nix Normal file
View File

@ -0,0 +1,34 @@
{
pkgs,
buildPythonPackage,
setuptools,
fetchFromGitHub,
multimon-ng,
...
}:
with pkgs;
buildPythonPackage rec {
pname = "pymultimonaprs";
version = "1.3.1";
nativeBuildInputs = [setuptools];
propagatedBuildInputs = [
setuptools
multimon-ng
];
buildInputs = [];
makeWrapperArgs = [
# Add the installed directories to the python path so the daemon can find them
"--prefix PYTHONPATH : ${python3.pkgs.makePythonPath propagatedBuildInputs}"
"--prefix PYTHONPATH : $out/lib/${python3.libPrefix}/site-packages"
];
src = fetchFromGitHub {
owner = "qbit";
repo = pname;
rev = "refs/heads/py3";
sha256 = "sha256-Tdg5hK2wi+KErdbfu8UGJ6d+WT3NbhnFV8pBMBpPAz0=";
};
}