mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 16:11:22 +00:00
liquid-dsp: tidy
attribute ordering, remove unused arg, patch comments
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
stdenv,
|
||||
cmake,
|
||||
fetchFromGitHub,
|
||||
autoreconfHook,
|
||||
darwin,
|
||||
fixDarwinDylibNames,
|
||||
}:
|
||||
@@ -19,10 +18,13 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-IvWtoXuuIvpJfY4cyRUsPHgax2/aytYShSdxEStiPYI=";
|
||||
};
|
||||
|
||||
cmakeFlags = [
|
||||
# Prevent native cpu arch from leaking into binaries.
|
||||
(lib.cmakeBool "ENABLE_SIMD" false)
|
||||
(lib.cmakeBool "FIND_SIMD" false)
|
||||
patches = [
|
||||
# Fix CMake absolute include/lib paths issue, see also
|
||||
# - https://github.com/NixOS/nixpkgs/issues/144170
|
||||
# - https://github.com/jgaeddert/liquid-dsp/pull/450
|
||||
./fix-cmake-pc-paths.patch
|
||||
# liquid.h uses va_list; needs stdarg.h
|
||||
./include-stdarg.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -33,9 +35,10 @@ stdenv.mkDerivation rec {
|
||||
fixDarwinDylibNames
|
||||
];
|
||||
|
||||
patches = [
|
||||
./fix-cmake-pc-paths.patch
|
||||
./include-stdarg.patch
|
||||
cmakeFlags = [
|
||||
# Prevent native cpu arch from leaking into binaries.
|
||||
(lib.cmakeBool "ENABLE_SIMD" false)
|
||||
(lib.cmakeBool "FIND_SIMD" false)
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
Reference in New Issue
Block a user