19 inherit (stdenv.hostPlatform) isLinux;
22 stdenv.mkDerivation rec {
26 src = fetchFromGitHub {
30 hash = "sha256-8NV0+M9eMcvkP3UERDkaimbapTKxB4rYRLbHZjzG4Ws=";
49 postPatch = lib.optionalString isLinux ''
50 substituteInPlace doc/docbook_man.debian.xsl \
51 --replace /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook\.xsl ${docbook_xsl_ns}/xml/xsl/docbook/manpages/docbook.xsl
56 "-DINSTALL_UDEV_RULES=OFF"
60 installManPage doc/dmrconf.1 doc/qdmr.1
61 mkdir -p "$out/etc/udev/rules.d"
62 cp ${src}/dist/99-qdmr.rules $out/etc/udev/rules.d/
66 description = "GUI application and command line tool for programming DMR radios";
67 homepage = "https://dm3mat.darc.de/qdmr/";
68 license = lib.licenses.gpl3Plus;
69 maintainers = with lib.maintainers; [ _0x4A6F ];
70 platforms = lib.platforms.linux;