nixpkgs/pkgs/applications/radio/qdmr/default.nix
0x4A6F a990f74cf8
treewide: sha256 -> hash (#262801)
* tumpa: sha256 -> hash

* qubes-core-vchan-xen: sha256 -> hash

* qdmr: sha256 -> hash

* w_scan2: sha256 -> hash

* libcdada: sha256 -> hash

* eidolon: sha256 -> hash

* freenukum: sha256 -> hash

* promscale: sha256 -> hash

* tacacsplus: sha256 -> hash

* blflash: sha256 -> hash

* silicon: sha256 -> hash

* nethoscope: sha256 -> hash

* pmacct: sha256 -> hash

* tayga: sha256 -> hash

* alejandra: sha256 -> hash

* igrep: sha256 -> hash

* cwm: sha256 -> hash

* dasel: sha256 -> hash
2023-10-23 00:38:33 +02:00

74 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
installShellFiles,
writeText,
cmake,
libxslt,
docbook_xsl_ns,
wrapQtAppsHook,
libusb1,
qtlocation,
qtserialport,
qttools,
qtbase,
yaml-cpp,
}:
let
inherit (stdenv) isLinux;
in
stdenv.mkDerivation rec {
pname = "qdmr";
version = "0.11.3";
src = fetchFromGitHub {
owner = "hmatuschek";
repo = "qdmr";
rev = "v${version}";
hash = "sha256-YLGsKGcKIPd0ihd5IzlT71dYkxZfeH7BpnKQMEyY8dI=";
};
nativeBuildInputs = [
cmake
libxslt
wrapQtAppsHook
installShellFiles
];
buildInputs = [
libusb1
qtlocation
qtserialport
qttools
qtbase
yaml-cpp
];
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"
"-DINSTALL_UDEV_RULES=OFF"
];
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 = "GUI application and command line tool for programming DMR radios";
homepage = "https://dm3mat.darc.de/qdmr/";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ janik _0x4A6F ];
platforms = lib.platforms.linux;
};
}