package.nix (865B)
1 { 2 lib, 3 stdenv, 4 rustPlatform, 5 fetchFromGitHub, 6 pkg-config, 7 rtl-sdr, 8 systemd, 9 }: 10 11 rustPlatform.buildRustPackage (finalAttrs: { 12 pname = "rtltcp"; 13 version = "0.1.1-unstable-2025-01-11"; 14 15 src = fetchFromGitHub { 16 owner = "niclashoyer"; 17 repo = "rtltcp"; 18 rev = "1a9ae7f59fd1d6eac13a445a8661bc67a9457da6"; 19 hash = "sha256-HbO4vlv2KkJNap+gTS9Pw8QbObBfiYc4nWDNRXwgvmA="; 20 }; 21 22 cargoHash = "sha256-ZFAE+W911GpDFocO2Z3h4GksnJIVbSPsMuawbHhKtdI="; 23 24 nativeBuildInputs = [ pkg-config ]; 25 26 buildInputs = [ 27 rtl-sdr 28 systemd 29 ]; 30 31 meta = { 32 description = "A rust implementation of rtl-tcp"; 33 homepage = "https://github.com/niclashoyer/rtltcp"; 34 license = with lib.licenses; [ 35 asl20 36 mit 37 ]; 38 maintainers = [ lib.maintainers.sikmir ]; 39 platforms = lib.platforms.linux; 40 skip.ci = stdenv.isDarwin; 41 }; 42 })