1 { lib, stdenv, fetchFromGitHub, fetchpatch, cmake, pkg-config, boost, codec2 }:
3 stdenv.mkDerivation rec {
4 pname = "m17-cxx-demod";
7 src = fetchFromGitHub {
11 hash = "sha256-mvppkFBmmPVqvlqIqrbwGrOBih5zS5sZrV/usEhHiws=";
15 # Pull fix pending upstream inclusion for `gcc-13` support:
16 # https://github.com/mobilinkd/m17-cxx-demod/pull/34
18 name = "gcc-13.patch";
19 url = "https://github.com/mobilinkd/m17-cxx-demod/commit/2e2aaf95eeac456a2e8795e4363518bb4d797ac0.patch";
20 hash = "sha256-+XRzHStJ/7XI5JDoBeNwbifsTOw8il3GyFwlbw07wyk=";
24 nativeBuildInputs = [ cmake pkg-config ];
25 buildInputs = [ codec2 boost ];
28 description = "M17 Demodulator in C++";
29 homepage = "https://github.com/mobilinkd/m17-cxx-demod";
30 license = licenses.gpl3Only;
31 platforms = platforms.unix;
32 maintainers = teams.c3d2.members;
33 # never built on aarch64-darwin, x86_64-darwin since first introduction in nixpkgs
34 broken = stdenv.isDarwin;