From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <guix-patches-bounces+larch=yhetil.org@gnu.org>
Received: from mp12.migadu.com ([2001:41d0:8:6d80::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms5.migadu.com with LMTPS
	id uJQmI4EKNmN4lwAAbAwnHQ
	(envelope-from <guix-patches-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Thu, 29 Sep 2022 23:13:37 +0200
Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp12.migadu.com with LMTPS
	id GB83I4EKNmPxfAAAauVa8A
	(envelope-from <guix-patches-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Thu, 29 Sep 2022 23:13:37 +0200
Received: from lists.gnu.org (lists.gnu.org [209.51.188.17])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by aspmx1.migadu.com (Postfix) with ESMTPS id 1B6FF252B1
	for <larch@yhetil.org>; Thu, 29 Sep 2022 23:13:37 +0200 (CEST)
Received: from localhost ([::1]:36188 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <guix-patches-bounces+larch=yhetil.org@gnu.org>)
	id 1oe0qe-0000xd-9r
	for larch@yhetil.org; Thu, 29 Sep 2022 17:13:36 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:49218)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1oe0qG-0000xE-2Z
 for guix-patches@gnu.org; Thu, 29 Sep 2022 17:13:12 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:40744)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1oe0q6-0007ip-Hm
 for guix-patches@gnu.org; Thu, 29 Sep 2022 17:13:11 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1oe0q6-0000jN-DF
 for guix-patches@gnu.org; Thu, 29 Sep 2022 17:13:02 -0400
X-Loop: help-debbugs@gnu.org
Subject: [bug#58162] [PATCH] gnu: Add qdmr
References: <20220929015726.26821-1-ryan@using.tech>
In-Reply-To: <20220929015726.26821-1-ryan@using.tech>
Resent-From: Ryan Tolboom <ryan@using.tech>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: guix-patches@gnu.org
Resent-Date: Thu, 29 Sep 2022 21:13:02 +0000
Resent-Message-ID: <handler.58162.B58162.16644859642786@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 58162
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 58162@debbugs.gnu.org
Cc: Ryan Tolboom <ryan@using.tech>
Received: via spool by 58162-submit@debbugs.gnu.org id=B58162.16644859642786
 (code B ref 58162); Thu, 29 Sep 2022 21:13:02 +0000
Received: (at 58162) by debbugs.gnu.org; 29 Sep 2022 21:12:44 +0000
Received: from localhost ([127.0.0.1]:39822 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1oe0pn-0000ir-Hy
 for submit@debbugs.gnu.org; Thu, 29 Sep 2022 17:12:43 -0400
Received: from mail-qk1-f171.google.com ([209.85.222.171]:36721)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ryan@using.tech>) id 1oe0pk-0000iZ-Tp
 for 58162@debbugs.gnu.org; Thu, 29 Sep 2022 17:12:42 -0400
Received: by mail-qk1-f171.google.com with SMTP id i3so1689240qkl.3
 for <58162@debbugs.gnu.org>; Thu, 29 Sep 2022 14:12:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=using-tech.20210112.gappssmtp.com; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:from:to:cc:subject:date;
 bh=DkvvCCUXNSs0SY4MgYjm6C/GHqQ1Jnfo90S10vNbkIo=;
 b=CCPeUKJ5YUvLURYyN7wFKI4nIRtEJRvZPjZKQwP3yy5OrKdJvHJL+3x0lpuLm1LVrV
 Xhz6P5Z1DxRRsnl9i4EHBT4tqGXv32D8Y1uwOPDRtkj4P7G86v90L5MpXMhF8K+mxDhq
 2OmQBQeRtk+nFp8g5aeUYvmsPjsx9E21Lm6rCAez2UtjwsUDCWYFxyXej/kN0Gz6gLEw
 HpL4UlbMh6A6sEh4siM27/LlQkNEezEYowxRbTI3v6LcvR7zEidq13CbR6PY0p1bf2T7
 E/2GBA0DS5YcFzAIBeioQRtRGqW3FfvAlN+tQPPdmq0IHN9O0ojuksinQtVzhbrwXjQV
 VRZw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:x-gm-message-state:from:to:cc:subject:date;
 bh=DkvvCCUXNSs0SY4MgYjm6C/GHqQ1Jnfo90S10vNbkIo=;
 b=ppEYG1VQJFso9QD+wqF3tYjKQ9BldE1zVT+D995kWvaFXq6ZR0Cg8xGOfHpuUefLqb
 e0+Ooi0k7Z9qGFvDXtnJV/43MiMFE/AxXQT5JBoryXAoIfeRPTP68Dg+YrN5FMQzrlQz
 8WDom2WdzP3nWsoai1Nlsl+YmTh2Qz8E1PY1IX0rQumUvp//koNyg5aT//Ard25oDkt2
 kIsi/Sz+05di1zLnr1R9cRlmE6gLvn8WBCJL3rjTmES2qIvPysabE/qqRxn4zRowg3yi
 BGtUx9SWBgsVZ1gV8Emp5SOLjeFd3LJnOSErpxgvorMXsFevPqsN99jm39jMwb7OWS4p
 2lIA==
X-Gm-Message-State: ACrzQf036slXLClSGWG3j45s+ys2Ja74SXHcsRA3gzqRS9xCxRTelQvW
 Cbqweuz9dO3GDOWJ5p0WDs14WzoNAKZSlQ==
X-Google-Smtp-Source: AMsMyM4wgXcC9YiDs+XcaqSXKqS+K4gwVSsE5ZfI5n/jgOtWu/Y/4Obvix8RmhJ0c3Evkoq6v+DZNA==
X-Received: by 2002:a05:620a:1720:b0:6ce:7d38:c307 with SMTP id
 az32-20020a05620a172000b006ce7d38c307mr3814118qkb.149.1664485955047; 
 Thu, 29 Sep 2022 14:12:35 -0700 (PDT)
Received: from radio.resource.campus.njit.edu (def-pat-85-0.njit.edu.
 [128.235.85.0]) by smtp.gmail.com with ESMTPSA id
 f21-20020a05620a409500b006bbc3724affsm519801qko.45.2022.09.29.14.12.34
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 29 Sep 2022 14:12:34 -0700 (PDT)
From: Ryan Tolboom <ryan@using.tech>
Date: Thu, 29 Sep 2022 17:12:20 -0400
Message-Id: <20220929211220.5309-1-ryan@using.tech>
X-Mailer: git-send-email 2.37.3
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: guix-patches@gnu.org
List-Id: <guix-patches.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>,
 <mailto:guix-patches-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/guix-patches>
List-Post: <mailto:guix-patches@gnu.org>
List-Help: <mailto:guix-patches-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>,
 <mailto:guix-patches-request@gnu.org?subject=subscribe>
Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org
Sender: "Guix-patches" <guix-patches-bounces+larch=yhetil.org@gnu.org>
X-Migadu-Flow: FLOW_IN
X-Migadu-Country: US
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1664486017;
	h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:cc:mime-version:mime-version:
	 content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:resent-cc:
	 resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to:
	 references:references:list-id:list-help:list-unsubscribe:
	 list-subscribe:list-post:dkim-signature;
	bh=DkvvCCUXNSs0SY4MgYjm6C/GHqQ1Jnfo90S10vNbkIo=;
	b=IuZPedASyTVNAJs8fIQbZswtjSBZ8yiUfZX1Ny320aurq0WVCKF87sQiTzPLMl18E6cXD9
	jfqjJNxi2WeCiOcHnOEp+TOQnS2YEyJNrwC1TdLcSYWZvMS2S0RKOWm9B0IK+sSJjdZHVT
	ZDnoXnG8d1xehnLfSKzz60LqyvqIAqgjUviP2qwfPy7pDGc3R4g7qaXhDPTrKRe2f+jukw
	fEs1AOP2Lly6UUFMKxditA/avWJCNZTJCtnVkmkok89X88udvJ/SZnq/5PoguFeBOU7QF8
	4XETFToGUHhCjTyZcdAiErgDQBeq/WisVqPDtMSLPX0bijnQN9J2tzSwDM7sAw==
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664486017; a=rsa-sha256; cv=none;
	b=K3BReH7CuuFmzp2jeGse1sCf5oZ3RUQTzSvD9C1BZ/oWBJnyjZimopU1dOfKhJWQiuItVh
	Z8+BYlTzi+OiDV9oP9COjCnI4s9U5Gx6aV22yTK6YbsNb9jKsYxc3txZBZ5kNf8fYwvgc7
	v6g6JTNXyQ1zXFFFyzMpJnZbGBtdxpFkQUITFn8ugJ0FqcRQF3FlU3HryCta7IWa/XdpYH
	97wSoKRLU7f9+n8i9QpRRB67kDsVVXBQ7gfzYkYzuYx/RdQYLXF3FDkkLM+DLPcE5Ag/76
	UlfvtWj25jdCe+NqfF23XdxGlbT2c8JYtmR64sBY2bms2adOxILysuSzl2jPxg==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=using-tech.20210112.gappssmtp.com header.s=20210112 header.b=CCPeUKJ5;
	dmarc=none;
	spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"
X-Migadu-Spam-Score: 3.66
Authentication-Results: aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=using-tech.20210112.gappssmtp.com header.s=20210112 header.b=CCPeUKJ5;
	dmarc=none;
	spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"
X-Migadu-Queue-Id: 1B6FF252B1
X-Spam-Score: 3.66
X-Migadu-Scanner: scn1.migadu.com
X-TUID: 6zDy2Zt8e0Bn

---
 gnu/packages/radio.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index 2968f9d390..5237d48fbe 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -11,6 +11,7 @@
 ;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
 ;;; Copyright © 2022 Sheng Yang <styang@fastmail.com>
 ;;; Copyright © 2022 Greg Hogan <code@greghogan.com>
+;;; Copyright © 2022 Ryan Tolboom <ryan@using.tech>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -89,6 +90,7 @@ (define-module (gnu packages radio)
   #:use-module (gnu packages readline)
   #:use-module (gnu packages ruby)
   #:use-module (gnu packages sdl)
+  #:use-module (gnu packages serialization)
   #:use-module (gnu packages sphinx)
   #:use-module (gnu packages swig)
   #:use-module (gnu packages tcl)
@@ -2668,3 +2670,40 @@ (define-public gnss-sdr
 position fixes) the signals of the BeiDou, Galileo, GLONASS and GPS Global
 Navigation Satellite System.")
     (license license:gpl3+)))
+
+(define-public qdmr
+  (package
+    (name "qdmr")
+    (version "0.10.3")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://github.com/hmatuschek/qdmr")
+                     (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "037vkwk974zrwacxafslkb3mbw9258v9sdpwdvb23msjzbc3snrn"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list #:tests? #f ;no tests
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'patch-paths
+                 (lambda _
+                   (substitute* "lib/CMakeLists.txt"
+                     (("(DESTINATION \")/etc/udev/" _ directive)
+                      (string-append directive #$output "/lib/udev/"))))))))
+    (inputs (list qtbase-5 qtserialport qtlocation yaml-cpp libusb))
+    (native-inputs (list qttools-5))
+    (home-page "https://dm3mat.darc.de/qdmr/")
+    (synopsis "GUI application and command line tool to program DMR radios")
+    (description
+     "qdmr is a graphical user interface (GUI) application that allows one to
+program several types of DMR radios.  It is comparable to the Customer
+Programming Software (CPS) bundled with these radios but aims to be a more
+universal tool.
+
+To install the qdmr udev rules, you must extend @code{udev-service-type} with this
+package.  E.g.: @code{(udev-rules-service 'qdmr qdmr)}")
+    (license license:gpl3+)))
-- 
2.37.3