nixpkgs/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 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; {
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
};
}