-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209733 from Janik-Haag/master-qdmr
qdmr: init at 0.11.2, added janik as maintainer
- Loading branch information
Showing
7 changed files
with
115 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
config, | ||
lib, | ||
pkgs, | ||
... | ||
}: | ||
|
||
let | ||
cfg = config.programs.qdmr; | ||
in { | ||
meta.maintainers = [ lib.maintainers.janik ]; | ||
|
||
options = { | ||
programs.qdmr = { | ||
enable = lib.mkEnableOption (lib.mdDoc "QDMR - a GUI application and command line tool for programming DMR radios"); | ||
package = lib.mkPackageOptionMD pkgs "qdmr" { }; | ||
}; | ||
}; | ||
|
||
config = lib.mkIf cfg.enable { | ||
environment.systemPackages = [ cfg.package ]; | ||
services.udev.packages = [ cfg.package ]; | ||
users.groups.wireshark = {}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters