Merge pull request #74518 from andir/chirp

chirp: modernize the expression by using buildPythonApplication
This commit is contained in:
Andreas Rammhold 2019-12-12 17:55:37 +01:00 committed by GitHub
commit b5de0c55f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 23 deletions

View file

@ -1,31 +1,20 @@
{ stdenv, fetchurl, libxml2Python, libxslt, makeWrapper
, pyserial, pygtk }:
stdenv.mkDerivation rec {
{ stdenv
, fetchurl
, python2
}:
python2.pkgs.buildPythonApplication rec {
pname = "chirp-daily";
version = "20190925";
version = "20191123";
src = fetchurl {
url = "https://trac.chirp.danplanet.com/chirp_daily/daily-${version}/${pname}-${version}.tar.gz";
sha256 = "0immgss7nj7395r3csiypksnbn1r2f3j45c5v8qpybz65lpbplps";
sha256 = "11wzk0c9fa3gp185gyd47g3sh7gfallw7qapr6qp913q2zfmif8v";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [
pyserial pygtk libxml2Python libxslt
propagatedBuildInputs = with python2.pkgs; [
pygtk pyserial libxml2
];
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 = https://chirp.danplanet.com/;

View file

@ -18177,9 +18177,7 @@ in
cgminer = callPackage ../applications/misc/cgminer { };
chirp = callPackage ../applications/radio/chirp {
inherit (pythonPackages) pyserial pygtk;
};
chirp = callPackage ../applications/radio/chirp { };
browsh = callPackage ../applications/networking/browsers/browsh { };