summary refs log tree commit diff
path: root/pkgs/applications/radio
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2019-02-09 15:52:57 +0100
committerElis Hirwing <elis@hirwing.se>2019-02-09 21:38:21 +0100
commita2722270db74fddde1bc3737a4849612e8bc9c49 (patch)
treee54c765d8bf8230542ca8275abc780d2efea8e2e /pkgs/applications/radio
parent0dbf08ab64797c89f2880db7082db82b70921e65 (diff)
downloadnixpkgs-a2722270db74fddde1bc3737a4849612e8bc9c49.tar
nixpkgs-a2722270db74fddde1bc3737a4849612e8bc9c49.tar.gz
nixpkgs-a2722270db74fddde1bc3737a4849612e8bc9c49.tar.bz2
nixpkgs-a2722270db74fddde1bc3737a4849612e8bc9c49.tar.lz
nixpkgs-a2722270db74fddde1bc3737a4849612e8bc9c49.tar.xz
nixpkgs-a2722270db74fddde1bc3737a4849612e8bc9c49.tar.zst
nixpkgs-a2722270db74fddde1bc3737a4849612e8bc9c49.zip
chirp: Move from misc to radio
Diffstat (limited to 'pkgs/applications/radio')
-rw-r--r--pkgs/applications/radio/chirp/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/applications/radio/chirp/default.nix b/pkgs/applications/radio/chirp/default.nix
new file mode 100644
index 00000000000..acc35131e2d
--- /dev/null
+++ b/pkgs/applications/radio/chirp/default.nix
@@ -0,0 +1,36 @@
+{ stdenv, fetchurl, libxml2Python, libxslt, makeWrapper
+, pyserial, pygtk }:
+
+stdenv.mkDerivation rec {
+  pname = "chirp-daily";
+  version = "20190201";
+
+  src = fetchurl {
+    url = "https://trac.chirp.danplanet.com/chirp_daily/daily-${version}/${pname}-${version}.tar.gz";
+    sha256 = "1ag3qzdq39zhpagviq9gpwk4y3h11z0j40nccsnhlq8h8bxpvwlf";
+  };
+
+  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 = https://chirp.danplanet.com/;
+    license = licenses.gpl3;
+    platforms = platforms.linux;
+    maintainers = [ maintainers.the-kenny ];
+  };
+}