nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 boost,
3 cmake,
4 fetchFromGitHub,
5 gmp,
6 gnuradio,
7 lib,
8 mkDerivation,
9 pkg-config,
10 python,
11 spdlog,
12 unstableGitUpdater,
13}:
14
15mkDerivation {
16 pname = "gr-difi";
17 version = "0-unstable-2025-08-16";
18
19 src = fetchFromGitHub {
20 owner = "DIFI-Consortium";
21 repo = "gr-difi";
22 rev = "330dd7f245f840903d034603850222a08c5a7c66";
23 hash = "sha256-zztnTaeYEWw9OAvgvy99aoj5UiJ/dOKQQWF+7Lfp59A=";
24 };
25
26 buildInputs = [
27 boost
28 gmp
29 gnuradio
30 spdlog
31 ]
32 ++ lib.optionals (gnuradio.hasFeature "python-support") [
33 python.pkgs.pybind11
34 python.pkgs.numpy
35 ];
36
37 nativeBuildInputs = [
38 cmake
39 pkg-config
40 ];
41
42 passthru.updateScript = unstableGitUpdater {
43 hardcodeZeroVersion = true;
44 };
45
46 meta = {
47 description = "GNU Radio Digital Intermediate Frequency Interoperability (DIFI) Out of Tree Module";
48 homepage = "https://github.com/DIFI-Consortium/gr-difi";
49 license = lib.licenses.gpl3Plus;
50 maintainers = [ lib.maintainers.jmbaur ];
51 platforms = lib.platforms.linux;
52 };
53}