nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 mkDerivation,
4 fetchFromGitHub,
5 gnuradio,
6 cmake,
7 pkg-config,
8 logLib,
9 mpir,
10 gmp,
11 boost,
12 python,
13 gnuradioOlder,
14}:
15
16mkDerivation {
17 pname = "gr-lora_sdr";
18 version = "unstable-2025-01-09";
19
20 src = fetchFromGitHub {
21 owner = "tapparelj";
22 repo = "gr-lora_sdr";
23 rev = "9befbad3e6120529918acf1a742e25465f6b95e4";
24 hash = "sha256-9oBdzoS2aWWXmiUk5rI0gG3g+BJqUDgMu3/PmZSUkuU=";
25 };
26 disabled = gnuradioOlder "3.10";
27
28 outputs = [
29 "out"
30 "dev"
31 ];
32
33 nativeBuildInputs = [
34 cmake
35 pkg-config
36 ];
37
38 buildInputs = [
39 logLib
40 mpir
41 gmp
42 boost
43 ]
44 ++ lib.optionals (gnuradio.hasFeature "python-support") [
45 python.pkgs.pybind11
46 python.pkgs.numpy
47 ];
48
49 cmakeFlags = [
50 (lib.cmakeBool "ENABLE_PYTHON" (gnuradio.hasFeature "python-support"))
51 ];
52
53 meta = {
54 description = "Fully-functional GNU Radio software-defined radio (SDR) implementation of a LoRa transceiver";
55 homepage = "https://www.epfl.ch/labs/tcl/resources-and-sw/lora-phy/";
56 license = lib.licenses.gpl3Plus;
57 maintainers = with lib.maintainers; [ chuangzhu ];
58 platforms = lib.platforms.unix;
59 };
60}