2021-12-06 16:07:01 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub
|
2022-07-14 12:49:19 +00:00
|
|
|
, cmake, pkg-config, fftwFloat, libsamplerate
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "csdr";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "0.18.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jketterl";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-4XO3QYF0yaMNFjBHulrlZvO0/A1fFscD98QxnC6Itmk=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2022-07-14 12:49:19 +00:00
|
|
|
cmake
|
2021-12-06 16:07:01 +00:00
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
fftwFloat
|
|
|
|
libsamplerate
|
|
|
|
];
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
hardeningDisable = lib.optional stdenv.isAarch64 "format";
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace "$out"/lib/pkgconfig/csdr.pc \
|
|
|
|
--replace '=''${prefix}//' '=/' \
|
|
|
|
--replace '=''${exec_prefix}//' '=/'
|
|
|
|
'';
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
meta = with lib; {
|
|
|
|
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;
|
2022-11-27 09:42:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = teams.c3d2.members;
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|