nixpkgs-suyu/pkgs/applications/radio/csdr/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
893 B
Nix
Raw Normal View History

2021-11-09 22:52:00 +01:00
{ stdenv, lib, fetchFromGitHub
2021-12-14 21:57:51 +01:00
, cmake, pkg-config, fftwFloat, libsamplerate
2021-11-09 22:52:00 +01:00
}:
stdenv.mkDerivation rec {
pname = "csdr";
2021-12-14 21:57:51 +01:00
version = "0.18.0";
2021-11-09 22:52:00 +01:00
src = fetchFromGitHub {
owner = "jketterl";
repo = pname;
rev = version;
2021-12-14 21:57:51 +01:00
sha256 = "sha256-4XO3QYF0yaMNFjBHulrlZvO0/A1fFscD98QxnC6Itmk=";
2021-11-09 22:52:00 +01:00
};
nativeBuildInputs = [
2021-12-14 21:57:51 +01:00
cmake
2021-11-09 22:52:00 +01:00
pkg-config
];
2021-12-14 21:57:51 +01:00
propagatedBuildInputs = [
2021-11-09 22:52:00 +01:00
fftwFloat
libsamplerate
];
2022-09-28 17:24:05 +02:00
postFixup = ''
substituteInPlace "$out"/lib/pkgconfig/csdr.pc \
--replace '=''${prefix}//' '=/' \
--replace '=''${exec_prefix}//' '=/'
'';
2021-11-09 22:52:00 +01:00
meta = with lib; {
broken = stdenv.isDarwin;
2021-11-09 22:52:00 +01: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 21:57:51 +01:00
maintainers = teams.c3d2.members;
2021-11-09 22:52:00 +01:00
};
}