3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/radio/dmrconfig/default.nix

43 lines
1,017 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub
2018-10-24 17:47:55 +01:00
, libusb1, systemd }:
stdenv.mkDerivation rec {
pname = "dmrconfig";
version = "1.1";
2018-10-24 17:47:55 +01:00
src = fetchFromGitHub {
owner = "sergev";
repo = "dmrconfig";
2018-12-03 13:53:23 +00:00
rev = version;
sha256 = "1qwix75z749628w583fwp7m7kxbj0k3g159sxb7vgqxbadqqz1ab";
2018-10-24 17:47:55 +01:00
};
buildInputs = [
libusb1 systemd
];
preConfigure = ''
2018-12-03 13:53:23 +00:00
substituteInPlace Makefile \
--replace /usr/local/bin/dmrconfig $out/bin/dmrconfig
2018-10-24 17:47:55 +01:00
'';
makeFlags = [ "VERSION=${version}" "GITCOUNT=0" ];
2018-11-07 17:32:42 +00:00
installPhase = ''
mkdir -p $out/bin $out/lib/udev/rules.d
make install
install 99-dmr.rules $out/lib/udev/rules.d/99-dmr.rules
2018-10-24 17:47:55 +01:00
'';
meta = with lib; {
2018-10-24 17:47:55 +01:00
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";
2018-10-24 17:47:55 +01:00
license = licenses.asl20;
maintainers = [ maintainers.etu ];
platforms = platforms.linux;
};
}