2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, libusb1, rtl-sdr }:
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "rtl-ais";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "0.8.1";
|
2022-10-21 18:38:19 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ rtl-sdr libusb1 ];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dgiardini";
|
|
|
|
repo = "rtl-ais";
|
|
|
|
rev = "0e85f4e5f9ce7378834c3129bc894580efc24291";
|
|
|
|
sha256 = "0wm4zai1vs89mf0zgz52q5w5rj8f3i3v6zg42hfb7aqabi25r3jf";
|
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-06-18 07:06:33 +00:00
|
|
|
description = "A simple AIS tuner and generic dual-frequency FM demodulator";
|
|
|
|
homepage = "https://github.com/dgiardini/rtl-ais";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ mgdm ];
|
2022-04-27 09:35:20 +00:00
|
|
|
mainProgram = "rtl_ais";
|
2020-06-18 07:06:33 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|