default.nix (906B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 check, 8 libconfig, 9 librtlsdr, 10 volk, 11 zlib, 12 }: 13 14 stdenv.mkDerivation (finalAttrs: { 15 pname = "sdr-server"; 16 version = "1.1.26"; 17 18 src = fetchFromGitHub { 19 owner = "dernasherbrezon"; 20 repo = "sdr-server"; 21 rev = finalAttrs.version; 22 hash = "sha256-knZHFErORSwqQV3G1ynRwtnylYfeE7qX4m4SZN57Tf8="; 23 }; 24 25 nativeBuildInputs = [ 26 cmake 27 pkg-config 28 ]; 29 30 buildInputs = [ 31 check 32 libconfig 33 librtlsdr 34 volk 35 zlib 36 ]; 37 38 installPhase = '' 39 install -Dm755 sdr_server -t $out/bin 40 install -Dm644 $src/src/resources/config.conf -t $out/etc 41 ''; 42 43 meta = { 44 description = "High performant TCP server for rtl-sdr"; 45 homepage = "https://github.com/dernasherbrezon/sdr-server"; 46 license = lib.licenses.gpl2; 47 maintainers = [ lib.maintainers.sikmir ]; 48 platforms = lib.platforms.unix; 49 }; 50 })