1 { lib, buildGoModule, fetchFromGitHub, bash, nixosTests }:
4 pname = "rtl_433-exporter";
7 src = fetchFromGitHub {
9 repo = "rtl_433_prometheus";
11 hash = "sha256-ggtGi1gnpTLGvZnfAW9vyYyU7ELbTRNhXyCMotx+KKU=";
14 postPatch = "substituteInPlace rtl_433_prometheus.go --replace /bin/bash ${bash}/bin/bash";
16 vendorHash = "sha256-BsNB0OTwBUu9kK+lSN7EF8ZQH3kFx8P9h4QgcfCvtg4=";
18 passthru.tests = { inherit (nixosTests.prometheus-exporters) rtl_433; };
21 description = "Prometheus time-series DB exporter for rtl_433 433MHz radio packet decoder";
22 mainProgram = "rtl_433_prometheus";
23 homepage = "https://github.com/mhansen/rtl_433_prometheus";
24 license = licenses.mit;
25 maintainers = with maintainers; [ zopieux ];