Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
cmake,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "soxr";
|
|
version = "0.1.3";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/soxr/soxr-${version}-Source.tar.xz";
|
|
sha256 = "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di";
|
|
};
|
|
|
|
patches = [
|
|
# Remove once https://sourceforge.net/p/soxr/code/merge-requests/5/ is merged.
|
|
./arm64-check.patch
|
|
];
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"doc"
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
cmakeFlags = [
|
|
# Workaround for upstream not using GNUInstallDirs.
|
|
"-DINCLUDE_INSTALL_DIR=${placeholder "dev"}/include"
|
|
];
|
|
|
|
# Fix the build with CMake 4.
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace-fail \
|
|
'cmake_minimum_required (VERSION 3.1 FATAL_ERROR)' \
|
|
'cmake_minimum_required (VERSION 3.10 FATAL_ERROR)'
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Audio resampling library";
|
|
homepage = "https://soxr.sourceforge.net";
|
|
license = licenses.lgpl21Plus;
|
|
platforms = platforms.unix ++ platforms.windows;
|
|
maintainers = [ ];
|
|
};
|
|
}
|