Files

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

49 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
cctools,
autoSignDarwinBinariesHook,
fixDarwinDylibNames,
}:
stdenv.mkDerivation rec {
pname = "liquid-dsp";
version = "1.6.0";
src = fetchFromGitHub {
owner = "jgaeddert";
repo = "liquid-dsp";
rev = "v${version}";
sha256 = "sha256-3UKAwhYaYZ42+d+wiW/AB6x5TSOel8d++d3HeZqAg/8=";
};
configureFlags =
lib.optionals stdenv.hostPlatform.isDarwin [
"LIBTOOL=${cctools}/bin/libtool"
]
++ [
# Prevent native cpu arch from leaking into binaries. This might lead to
# poor performance, but having portable and working executables is more
# important.
(lib.enableFeature true "simdoverride")
];
nativeBuildInputs = [
autoreconfHook
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
cctools
autoSignDarwinBinariesHook
fixDarwinDylibNames
];
meta = {
homepage = "https://liquidsdr.org/";
description = "Digital signal processing library for software-defined radios";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
};
}