mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
39 lines
813 B
Nix
39 lines
813 B
Nix
|
{ stdenv, lib, fetchFromGitHub
|
||
|
, autoreconfHook, pkg-config, fftwFloat, libsamplerate
|
||
|
}:
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
pname = "csdr";
|
||
|
version = "0.17.1";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "jketterl";
|
||
|
repo = pname;
|
||
|
rev = version;
|
||
|
sha256 = "1vip5a3xgskcwba3xi66zfr986xrsch9na7my818cm8vw345y57b";
|
||
|
};
|
||
|
|
||
|
patchPhase = ''
|
||
|
substituteInPlace configure.ac \
|
||
|
--replace -Wformat=0 ""
|
||
|
'';
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
autoreconfHook
|
||
|
pkg-config
|
||
|
];
|
||
|
|
||
|
buildInputs = [
|
||
|
fftwFloat
|
||
|
libsamplerate
|
||
|
];
|
||
|
|
||
|
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;
|
||
|
maintainers = with maintainers; [ astro ];
|
||
|
};
|
||
|
}
|