package.nix (1059B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 check, 8 libconfig, 9 libiio, 10 volk, 11 protobufc, 12 }: 13 14 stdenv.mkDerivation (finalAttrs: { 15 pname = "sdr-modem"; 16 version = "1.0.129"; 17 18 __structuredAttrs = true; 19 20 src = fetchFromGitHub { 21 owner = "dernasherbrezon"; 22 repo = "sdr-modem"; 23 tag = finalAttrs.version; 24 hash = "sha256-27Kz7xvgb6h/TBohhrgO3D4/eCBLkqYyHDMnmITM88s="; 25 }; 26 27 nativeBuildInputs = [ 28 cmake 29 pkg-config 30 ]; 31 32 buildInputs = [ 33 check 34 libconfig 35 libiio 36 volk 37 protobufc 38 ]; 39 40 cmakeFlags = [ 41 (lib.cmakeFeature "CMAKE_POLICY_VERSION_MINIMUM" "3.10") 42 ]; 43 44 installPhase = '' 45 install -Dm755 sdr_modem -t $out/bin 46 install -Dm644 $src/src/resources/config.conf -t $out/etc 47 ''; 48 49 meta = { 50 description = "Modem based on software defined radios"; 51 homepage = "https://github.com/dernasherbrezon/sdr-modem"; 52 license = lib.licenses.gpl2; 53 maintainers = [ lib.maintainers.sikmir ]; 54 platforms = lib.platforms.unix; 55 broken = stdenv.isDarwin; # libiio 56 }; 57 })
