2022-09-18 04:14:57 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, cctools
|
2022-10-11 23:03:35 +00:00
|
|
|
, autoSignDarwinBinariesHook
|
|
|
|
, fixDarwinDylibNames
|
2022-09-18 04:14:57 +00:00
|
|
|
}:
|
2017-03-14 21:02:43 +00:00
|
|
|
|
2022-03-18 14:14:29 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "liquid-dsp";
|
2022-11-22 15:06:44 +00:00
|
|
|
version = "1.5.0";
|
2017-03-14 21:02:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jgaeddert";
|
|
|
|
repo = "liquid-dsp";
|
2022-03-18 14:14:29 +00:00
|
|
|
rev = "v${version}";
|
2022-11-22 15:06:44 +00:00
|
|
|
sha256 = "sha256-EvCxBwzpi3riSBhlHr6MmIUYKTCp02y5gz7pDJCEC1Q=";
|
2017-03-14 21:02:43 +00:00
|
|
|
};
|
|
|
|
|
2022-09-18 04:14:57 +00:00
|
|
|
configureFlags = lib.optionals stdenv.isDarwin [ "LIBTOOL=${cctools}/bin/libtool" ];
|
2022-10-11 23:03:35 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ cctools autoSignDarwinBinariesHook fixDarwinDylibNames ];
|
2017-03-14 21:02:43 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://liquidsdr.org/";
|
2017-03-14 21:02:43 +00:00
|
|
|
description = "Digital signal processing library for software-defined radios";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.unix;
|
2017-03-14 21:02:43 +00:00
|
|
|
};
|
|
|
|
}
|