Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
88 lines
1.6 KiB
Nix
88 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
writeShellScript,
|
|
glib,
|
|
gsettings-desktop-schemas,
|
|
python3Packages,
|
|
unstableGitUpdater,
|
|
wrapGAppsHook3,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication {
|
|
pname = "chirp";
|
|
version = "0.4.0-unstable-2025-10-02";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kk7ds";
|
|
repo = "chirp";
|
|
rev = "bf848935eef3a739948a4a6c3ef8b5a31807481e";
|
|
hash = "sha256-8hQmH62yplZ5xao7nVwRdmyPQj3x5eitSBmFJYU3mb4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gsettings-desktop-schemas
|
|
];
|
|
|
|
build-system = with python3Packages; [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = with python3Packages; [
|
|
pyserial
|
|
requests
|
|
yattag
|
|
suds
|
|
lark
|
|
wxpython
|
|
];
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
pytestCheckHook
|
|
pytest-xdist
|
|
ddt
|
|
pyyaml
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace chirp/locale/Makefile \
|
|
--replace-fail /usr/bin/find find
|
|
'';
|
|
|
|
preBuild = ''
|
|
make -C chirp/locale
|
|
'';
|
|
|
|
preCheck = ''
|
|
export HOME="$TMPDIR"
|
|
'';
|
|
|
|
# many upstream test failures
|
|
doCheck = false;
|
|
|
|
passthru.updateScript = unstableGitUpdater {
|
|
tagConverter = writeShellScript "chirp-tag-converter.sh" ''
|
|
sed -e 's/^release_//g' -e 's/_/./g'
|
|
'';
|
|
};
|
|
|
|
meta = {
|
|
description = "Free, open-source tool for programming your amateur radio";
|
|
homepage = "https://chirp.danplanet.com/";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [
|
|
emantor
|
|
wrmilling
|
|
nickcao
|
|
ethancedwards8
|
|
];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|