52 lines
915 B
Nix
52 lines
915 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, fftwSinglePrec
|
|
, libsndfile
|
|
, sigutils
|
|
, soapysdr-with-plugins
|
|
, libxml2
|
|
, volk
|
|
, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "suscan";
|
|
version = "0.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "BatchDrake";
|
|
repo = "suscan";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-h1ogtYjkqiHb1/NAJfJ0HQIvGnZM2K/PSP5nqLXUf9M=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i 's/fftw3 >= 3.0/fftw3f >= 3.0/' suscan.pc.in
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
fftwSinglePrec
|
|
libsndfile
|
|
sigutils
|
|
soapysdr-with-plugins
|
|
libxml2
|
|
volk
|
|
zlib
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Channel scanner based on sigutils library";
|
|
homepage = "https://github.com/BatchDrake/suscan";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ polygon oxapentane ];
|
|
};
|
|
}
|