2021-11-09 21:52:00 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub
|
2021-12-14 20:57:51 +00:00
|
|
|
, cmake, pkg-config, fftwFloat, libsamplerate
|
2021-11-09 21:52:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "csdr";
|
2021-12-14 20:57:51 +00:00
|
|
|
version = "0.18.0";
|
2021-11-09 21:52:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jketterl";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-12-14 20:57:51 +00:00
|
|
|
sha256 = "sha256-4XO3QYF0yaMNFjBHulrlZvO0/A1fFscD98QxnC6Itmk=";
|
2021-11-09 21:52:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-12-14 20:57:51 +00:00
|
|
|
cmake
|
2021-11-09 21:52:00 +00:00
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
2021-12-14 20:57:51 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-11-09 21:52:00 +00:00
|
|
|
fftwFloat
|
|
|
|
libsamplerate
|
|
|
|
];
|
|
|
|
|
2022-09-28 15:24:05 +00:00
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace "$out"/lib/pkgconfig/csdr.pc \
|
|
|
|
--replace '=''${prefix}//' '=/' \
|
|
|
|
--replace '=''${exec_prefix}//' '=/'
|
|
|
|
'';
|
|
|
|
|
2021-11-09 21:52:00 +00:00
|
|
|
meta = with lib; {
|
2022-05-28 13:28:44 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2021-11-09 21:52:00 +00:00
|
|
|
homepage = "https://github.com/jketterl/csdr";
|
|
|
|
description = "A simple DSP library and command-line tool for Software Defined Radio";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.unix;
|
2021-12-14 20:57:51 +00:00
|
|
|
maintainers = teams.c3d2.members;
|
2021-11-09 21:52:00 +00:00
|
|
|
};
|
|
|
|
}
|