chirp: modernize the expression by using buildPythonApplication
This commit is contained in:
parent
464ff0aa24
commit
f9dd4b27f1
@ -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/;
|
||||
|
@ -18183,9 +18183,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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user