10 stdenv.mkDerivation rec {
14 src = fetchFromGitHub {
18 sha256 = "1qwix75z749628w583fwp7m7kxbj0k3g159sxb7vgqxbadqqz1ab";
22 # Pull upstream fix for -fno-common toolchains.
24 name = "fno-common.patch";
25 url = "https://github.com/OpenRTX/dmrconfig/commit/1a6901488db26262a6b69f80b0e795864e9e8d0a.patch";
26 sha256 = "03px1y95a8aspd251i1jj8ggqfjvkqby4lhn5pb7l5c1lzh6h762";
36 substituteInPlace Makefile \
37 --replace /usr/local/bin/dmrconfig $out/bin/dmrconfig
46 mkdir -p $out/bin $out/lib/udev/rules.d
48 install 99-dmr.rules $out/lib/udev/rules.d/99-dmr.rules
52 description = "Configuration utility for DMR radios";
54 DMRconfig is a utility for programming digital radios via USB programming cable.
56 homepage = "https://github.com/sergev/dmrconfig";
57 license = licenses.asl20;
59 platforms = platforms.linux;
60 mainProgram = "dmrconfig";