nixpkgs/pkgs/applications/radio/chirp/default.nix

53 lines
1.1 KiB
Nix

{ lib
, fetchFromGitHub
, writeShellScript
, glib
, gsettings-desktop-schemas
, python3
, unstableGitUpdater
, wrapGAppsHook3
}:
python3.pkgs.buildPythonApplication rec {
pname = "chirp";
version = "0.4.0-unstable-2024-05-03";
src = fetchFromGitHub {
owner = "kk7ds";
repo = "chirp";
rev = "e95140ff433b805ca16df04cba501b7332a9ec95";
hash = "sha256-UU3Ve6Yb7UK2nOLTfJasrlMX4iu1cpLBLScvhRhTUJ0=";
};
buildInputs = [
glib
gsettings-desktop-schemas
];
nativeBuildInputs = [
wrapGAppsHook3
];
propagatedBuildInputs = with python3.pkgs; [
future
pyserial
requests
six
wxpython
yattag
];
# "running build_ext" fails with no output
doCheck = false;
passthru.updateScript = unstableGitUpdater {
tagConverter = writeShellScript "chirp-tag-converter.sh" ''
sed -e 's/^release_//g' -e 's/_/./g'
'';
};
meta = with lib; {
description = "A free, open-source tool for programming your amateur radio";
homepage = "https://chirp.danplanet.com/";
license = licenses.gpl3Plus;
maintainers = [ maintainers.emantor ];
platforms = platforms.linux;
};
}