2018-10-24 17:47:55 +01:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, libusb1, systemd }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dmrconfig-${version}";
|
2018-10-30 00:08:51 +00:00
|
|
|
version = "2018-10-29";
|
2018-10-24 17:47:55 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sergev";
|
|
|
|
repo = "dmrconfig";
|
2018-10-30 00:08:51 +00:00
|
|
|
rev = "4924d00283c3c81a4b8251669e42aecd96b6145a";
|
|
|
|
sha256 = "00a4hmbr71g0d4faskb8q96y6z212g2r4n533yvp88z8rq8vbxxn";
|
2018-10-24 17:47:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|