2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zita-resampler";
|
2021-03-23 19:22:30 +00:00
|
|
|
version = "1.8.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pname}-${version}.tar.bz2";
|
2021-03-23 19:22:30 +00:00
|
|
|
sha256 = "sha256-5XRPI8VN0Vs/eDpoe9h57uKmkKRUWhW0nEzwN6pGSqI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"SUFFIX="
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
postPatch = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
cd source
|
2021-12-06 16:07:01 +00:00
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace 'ldconfig' ""
|
2024-01-02 11:29:13 +00:00
|
|
|
'' + lib.optionalString (!stdenv.hostPlatform.isx86_64) ''
|
2021-12-06 16:07:01 +00:00
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace '-DENABLE_SSE2' ""
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
fixupPhase = ''
|
|
|
|
ln -s $out/lib/libzita-resampler.so.$version $out/lib/libzita-resampler.so.1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Resample library by Fons Adriaensen";
|
|
|
|
version = version;
|
|
|
|
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [ lib.maintainers.magnetophon ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|