20 inherit (stdenv) isLinux;
23 stdenv.mkDerivation rec {
27 src = fetchFromGitHub {
31 hash = "sha256-YLGsKGcKIPd0ihd5IzlT71dYkxZfeH7BpnKQMEyY8dI=";
50 postPatch = lib.optionalString isLinux ''
51 substituteInPlace doc/docbook_man.debian.xsl \
52 --replace /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook\.xsl ${docbook_xsl_ns}/xml/xsl/docbook/manpages/docbook.xsl
57 "-DINSTALL_UDEV_RULES=OFF"
61 installManPage doc/dmrconf.1 doc/qdmr.1
62 mkdir -p "$out/etc/udev/rules.d"
63 cp ${src}/dist/99-qdmr.rules $out/etc/udev/rules.d/
67 description = "GUI application and command line tool for programming DMR radios";
68 homepage = "https://dm3mat.darc.de/qdmr/";
69 license = lib.licenses.gpl3Plus;
70 maintainers = with lib.maintainers; [ janik _0x4A6F ];
71 platforms = lib.platforms.linux;