Browse Source

radiobert: add dump1090_sdrplus

nek0/mail_redux
Astro 8 months ago
parent
commit
ef15444a8d
  1. 2
      host-registry.nix
  2. 1
      hosts/radiobert/default.nix
  3. 2
      overlay/default.nix
  4. 22
      overlay/dump1090.nix

2
host-registry.nix

@ -118,7 +118,7 @@ rec {
ip6 = "2a00:8180:2c00:282:1024:5fff:febd:9be7";
};
radiobert.ip4 = "172.22.99.117";
radiobert.ip4 = "172.22.99.154";
};
hqGlobal = builtins.attrNames hosts;

1
hosts/radiobert/default.nix

@ -80,6 +80,7 @@
libraspberrypi
vim
wget
dump1090_sdrplus
];
programs.tmux.enable = true;

2
overlay/default.nix

@ -6,4 +6,6 @@ final: prev:
pile = prev.callPackage ./pile.nix { };
openwebrx = prev.python3Packages.callPackage ./openwebrx.nix { };
dump1090_sdrplus = prev.callPackage ./dump1090.nix { };
}

22
overlay/dump1090.nix

@ -0,0 +1,22 @@
{ dump1090, fetchFromGitHub
, hackrf, rtl-sdr, airspy, soxr, libusb1
}:
dump1090.overrideAttrs (oa: {
src = fetchFromGitHub {
owner = "itemir";
repo = "dump1090_sdrplus";
rev = "master";
sha256 = "0pyc22fqzqqmzkci0ws5clbwcxa32qlrcb8sgrjzxkx48kyjlwm3";
};
buildInputs = oa.buildInputs ++ [
hackrf
rtl-sdr
airspy
soxr
];
makeFlags = [ "NoSDRplay=1" ];
installPhase = ''
mkdir -p $out/bin
cp -a dump1090 $out/bin/
'';
})
Loading…
Cancel
Save