mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-01 13:14:42 +00:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
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
|
|
];
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
url = "https://github.com/pothosware/SoapyRemote/commit/40c3ef9053b63885b7444ce7e9ef00d2c7964c9d.patch";
|
|
hash = "sha256-kEx4gge+AQW/LSUyo+aWXlqDzXjoxCfn3pi2mk5xsNI=";
|
|
})
|
|
];
|
|
|
|
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString (
|
|
lib.optionals stdenv.hostPlatform.isDarwin [ "-include sys/select.h" ]
|
|
);
|
|
|
|
meta = {
|
|
homepage = "https://github.com/pothosware/SoapyRemote";
|
|
description = "SoapySDR plugin for remote access to SDRs";
|
|
license = lib.licenses.boost;
|
|
maintainers = with lib.maintainers; [ markuskowa ];
|
|
platforms = lib.platforms.unix;
|
|
mainProgram = "SoapySDRServer";
|
|
};
|
|
}
|