biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / radio / m17-cxx-demod / default.nix
blobd6663fbc42876f32be88aec53fd88e5b4b436dba
1 { lib, stdenv, fetchFromGitHub, fetchpatch, cmake, pkg-config, boost, codec2 }:
3 stdenv.mkDerivation rec {
4   pname = "m17-cxx-demod";
5   version = "2.3";
7   src = fetchFromGitHub {
8     owner = "mobilinkd";
9     repo = pname;
10     rev = "v${version}";
11     hash = "sha256-mvppkFBmmPVqvlqIqrbwGrOBih5zS5sZrV/usEhHiws=";
12   };
14   patches = [
15     # Pull fix pending upstream inclusion for `gcc-13` support:
16     #   https://github.com/mobilinkd/m17-cxx-demod/pull/34
17     (fetchpatch {
18       name = "gcc-13.patch";
19       url = "https://github.com/mobilinkd/m17-cxx-demod/commit/2e2aaf95eeac456a2e8795e4363518bb4d797ac0.patch";
20       hash = "sha256-+XRzHStJ/7XI5JDoBeNwbifsTOw8il3GyFwlbw07wyk=";
21     })
22   ];
24   nativeBuildInputs = [ cmake pkg-config ];
25   buildInputs = [ codec2 boost ];
27   meta = with lib; {
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;
35   };