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