616cf3f738
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. This update was made based on information from https://repology.org/metapackage/chirp-daily/versions. These checks were done: - built on NixOS - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.) - found 20180325 with grep in /nix/store/xlgh06iiayz3f6svbqhdvnmhklvi4w3i-chirp-daily-20180325 - directory tree listing: https://gist.github.com/fe1b7b075a9c5f16ef47891d6730b7bb
37 lines
1017 B
Nix
37 lines
1017 B
Nix
{ stdenv, fetchurl, libxml2Python, libxslt, makeWrapper
|
|
, python, pyserial, pygtk }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "chirp-daily-${version}";
|
|
version = "20180325";
|
|
|
|
src = fetchurl {
|
|
url = "http://trac.chirp.danplanet.com/chirp_daily/daily-${version}/${name}.tar.gz";
|
|
sha256 = "0z2m74hhkxvxchxv819wy947v3wl13kxrdq4kjjazzrlyaky921y";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [
|
|
pyserial pygtk libxml2Python libxslt pyserial
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin $out/share/chirp
|
|
cp -r . $out/share/chirp/
|
|
ln -s $out/share/chirp/chirpw $out/bin/chirpw
|
|
|
|
for file in "$out"/bin/*; do
|
|
wrapProgram "$file" \
|
|
--prefix PYTHONPATH : $PYTHONPATH:$(toPythonPath "$out")
|
|
done
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A free, open-source tool for programming your amateur radio";
|
|
homepage = http://chirp.danplanet.com/;
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.the-kenny ];
|
|
};
|
|
}
|