Files
nixpkgs/pkgs/by-name/rt/rtl-ais/package.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

37 lines
771 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
libusb1,
rtl-sdr,
}:
stdenv.mkDerivation {
pname = "rtl-ais";
version = "0.8.1";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
rtl-sdr
libusb1
];
src = fetchFromGitHub {
owner = "dgiardini";
repo = "rtl-ais";
rev = "0e85f4e5f9ce7378834c3129bc894580efc24291";
sha256 = "0wm4zai1vs89mf0zgz52q5w5rj8f3i3v6zg42hfb7aqabi25r3jf";
};
makeFlags = [ "PREFIX=$(out)" ];
meta = {
description = "Simple AIS tuner and generic dual-frequency FM demodulator";
homepage = "https://github.com/dgiardini/rtl-ais";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ mgdm ];
mainProgram = "rtl_ais";
platforms = lib.platforms.unix;
};
}