diff --git a/pkgs/applications/misc/dmrconfig/default.nix b/pkgs/applications/misc/dmrconfig/default.nix new file mode 100644 index 000000000000..20c6ff57b241 --- /dev/null +++ b/pkgs/applications/misc/dmrconfig/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchFromGitHub +, libusb1, systemd }: + +stdenv.mkDerivation rec { + name = "dmrconfig-${version}"; + version = "2018-10-20"; + + src = fetchFromGitHub { + owner = "sergev"; + repo = "dmrconfig"; + rev = "a4c5f893d2749727493427320c7f01768966ba51"; + sha256 = "0h7hv6fv6v5g922nvgrb0w7hsqbhaw7xmdc6vydh2p3l7sp31vg2"; + }; + + buildInputs = [ + libusb1 systemd + ]; + + preConfigure = '' + substituteInPlace Makefile --replace /usr/local/bin/dmrconfig $out/bin/dmrconfig + ''; + + preInstall = '' + mkdir -p $out/bin + ''; + + meta = with stdenv.lib; { + description = "Configuration utility for DMR radios"; + longDescription = '' + DMRconfig is a utility for programming digital radios via USB programming cable. + ''; + homepage = https://github.com/sergev/dmrconfig; + license = licenses.asl20; + maintainers = [ maintainers.etu ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 45984c3e9678..8a3c521f9b90 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16149,6 +16149,8 @@ with pkgs; inherit (python3Packages) buildPythonApplication requests; }; + dmrconfig = callPackage ../applications/misc/dmrconfig { }; + dmtx-utils = callPackage (callPackage ../tools/graphics/dmtx-utils) { };