Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
966 B
Nix
46 lines
966 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
soapysdr,
|
|
avahi,
|
|
}:
|
|
|
|
let
|
|
version = "0.5.2-unstable-2024-01-24";
|
|
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "soapyremote";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pothosware";
|
|
repo = "SoapyRemote";
|
|
rev = "54caa5b2af348906607c5516a112057650d0873d";
|
|
sha256 = "sha256-uekElbcbX2P5TEufWEoP6tgUM/4vxgSQZu8qaBCSo18=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [
|
|
soapysdr
|
|
avahi
|
|
];
|
|
|
|
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString (
|
|
lib.optionals stdenv.hostPlatform.isDarwin [ "-include sys/select.h" ]
|
|
);
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/pothosware/SoapyRemote";
|
|
description = "SoapySDR plugin for remote access to SDRs";
|
|
license = licenses.boost;
|
|
maintainers = with maintainers; [ markuskowa ];
|
|
platforms = platforms.unix;
|
|
mainProgram = "SoapySDRServer";
|
|
};
|
|
}
|