summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/radio/qdmr
diff options
context:
space:
mode:
authorJanik H <janik@aq0.de>2023-01-08 19:01:21 +0100
committerJanik H <janik@aq0.de>2023-02-01 17:50:11 +0100
commitd0c759feae0e94c7999b3924dbdf4d487594479e (patch)
tree816b9f562d30e710469d3be1551ee54373dec73e /pkgs/applications/radio/qdmr
parente5ac8de6efcf404dbbc2c4ae18d1df85f4bd56a2 (diff)
qdmr: init at 0.11.2
Diffstat (limited to 'pkgs/applications/radio/qdmr')
-rw-r--r--pkgs/applications/radio/qdmr/default.nix70
1 files changed, 70 insertions, 0 deletions
diff --git a/pkgs/applications/radio/qdmr/default.nix b/pkgs/applications/radio/qdmr/default.nix
new file mode 100644
index 000000000000..79a9fdb51ced
--- /dev/null
+++ b/pkgs/applications/radio/qdmr/default.nix
@@ -0,0 +1,70 @@
+{
+ lib,
+ stdenv,
+ fetchFromGitHub,
+ installShellFiles,
+ writeText,
+ cmake,
+ libxslt,
+ docbook_xsl_ns,
+ wrapQtAppsHook,
+ libusb1,
+ libyamlcpp,
+ qtlocation,
+ qtserialport,
+ qttools,
+ qtbase,
+}:
+
+let
+ inherit (stdenv) isLinux;
+in
+
+stdenv.mkDerivation rec {
+ pname = "qdmr";
+ version = "0.11.2";
+
+ src = fetchFromGitHub {
+ owner = "hmatuschek";
+ repo = "qdmr";
+ rev = "v${version}";
+ sha256 = "sha256-zT31tzsm5OM99vz8DzGCdPmnemiwiJpKccYwECnUgOQ=";
+ };
+
+ nativeBuildInputs = [
+ cmake
+ libxslt
+ wrapQtAppsHook
+ installShellFiles
+ ];
+
+ buildInputs = [
+ libyamlcpp
+ libusb1
+ qtlocation
+ qtserialport
+ qttools
+ qtbase
+ ];
+
+ postPatch = lib.optionalString isLinux ''
+ substituteInPlace doc/docbook_man.debian.xsl \
+ --replace /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook\.xsl ${docbook_xsl_ns}/xml/xsl/docbook/manpages/docbook.xsl
+ '';
+
+ cmakeFlags = [ "-DBUILD_MAN=ON" ];
+
+ postInstall = ''
+ installManPage doc/dmrconf.1 doc/qdmr.1
+ mkdir -p "$out/etc/udev/rules.d"
+ cp ${src}/dist/99-qdmr.rules $out/etc/udev/rules.d/
+ '';
+
+ meta = {
+ description = "A codeplug programming tool for DMR radios";
+ homepage = "https://dm3mat.darc.de/qdmr/";
+ license = lib.licenses.gpl3Plus;
+ maintainers = with lib.maintainers; [ janik _0x4A6F ];
+ platforms = lib.platforms.linux;
+ };
+}