571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
54 lines
972 B
Nix
54 lines
972 B
Nix
{ stdenv
|
|
, lib
|
|
, cmake
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, fftwFloat
|
|
, mbedtls
|
|
, boost
|
|
, lksctp-tools
|
|
, libconfig
|
|
, pcsclite
|
|
, uhd
|
|
, soapysdr-with-plugins
|
|
, libbladeRF
|
|
, zeromq
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "srsran";
|
|
version = "23.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "srsran";
|
|
repo = "srsran";
|
|
rev = "release_${builtins.replaceStrings ["."] ["_"] version}";
|
|
sha256 = "sha256-3cQMZ75I4cyHpik2d/eBuzw7M4OgbKqroCddycw4uW8=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [
|
|
fftwFloat
|
|
mbedtls
|
|
boost
|
|
libconfig
|
|
lksctp-tools
|
|
pcsclite
|
|
uhd
|
|
soapysdr-with-plugins
|
|
libbladeRF
|
|
zeromq
|
|
];
|
|
|
|
cmakeFlags = [ "-DENABLE_WERROR=OFF" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.srslte.com/";
|
|
description = "Open-source 4G and 5G software radio suite";
|
|
license = licenses.agpl3Plus;
|
|
platforms = with platforms; linux ;
|
|
maintainers = with maintainers; [ hexagonal-sun ];
|
|
};
|
|
}
|