nix-config/overlays/readsb.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
850 B
Nix
Raw Normal View History

{ stdenv
, fetchFromGitHub
, pkg-config
, protobufc
, ncurses
, rrdtool
, libusb1
, libbladeRF
, librtlsdr
# , libad9361, libiio
}:
stdenv.mkDerivation rec {
pname = "readsb-protobuf";
version = "unstable-2021-12-10";
src = fetchFromGitHub {
owner = "Mictronics";
2022-06-13 16:10:54 +02:00
repo = pname;
# branch "dev" as of 2021-12-10
rev = "b6c1bebc77d80a9366e31c13c73eea95e7a9296a";
sha256 = "0vg37cngbvahwb8wc6j5i605d8fn4ck0szy13xzw5b3q61aqvaqv";
};
nativeBuildInputs = [
pkg-config
protobufc
];
2022-06-12 17:26:32 +02:00
buildInputs = [
ncurses
rrdtool
libusb1
libbladeRF
librtlsdr
# libad9361 libiio
];
2022-06-12 17:26:32 +02:00
# enableParallelBuilding = true;
2022-06-12 17:26:32 +02:00
makeFlags = [
"BLADERF=yes"
"RTLSDR=yes"
# "PLUTOSDR=yes"
];
installPhase = ''
find . -type f
mkdir -p $out/bin
cp -a readsb viewadsb $out/bin/
'';
}