mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{ lib
|
|
, mkDerivation
|
|
, fetchFromGitHub
|
|
, gnuradio
|
|
, cmake
|
|
, pkg-config
|
|
, swig3
|
|
, python
|
|
, logLib
|
|
, mpir
|
|
, thrift
|
|
, boost
|
|
, gmp
|
|
, icu
|
|
, gnuradioAtLeast
|
|
}:
|
|
|
|
let
|
|
version = {
|
|
"3.7" = "1.1.0";
|
|
"3.8" = "3.8.0";
|
|
"3.9" = null;
|
|
}.${gnuradio.versionAttr.major};
|
|
src = fetchFromGitHub {
|
|
owner = "bastibl";
|
|
repo = "gr-rds";
|
|
rev = "v${version}";
|
|
sha256 = {
|
|
"3.7" = "0jkzchvw0ivcxsjhi1h0mf7k13araxf5m4wi5v9xdgqxvipjzqfy";
|
|
"3.8" = "+yKLJu2bo7I2jkAiOdjvdhZwxFz9NFgTmzcLthH9Y5o=";
|
|
"3.9" = null;
|
|
}.${gnuradio.versionAttr.major};
|
|
};
|
|
in mkDerivation {
|
|
pname = "gr-rds";
|
|
inherit version src;
|
|
disabled = gnuradioAtLeast "3.9";
|
|
|
|
buildInputs = [
|
|
logLib
|
|
mpir
|
|
boost
|
|
gmp
|
|
icu
|
|
] ++ lib.optionals (gnuradio.hasFeature "gr-ctrlport") [
|
|
thrift
|
|
python.pkgs.thrift
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
swig3
|
|
python
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Gnuradio block for radio data system";
|
|
homepage = "https://github.com/bastibl/gr-rds";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ mog ];
|
|
};
|
|
}
|