2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2015-05-06 01:08:11 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "zita-resampler";
|
2021-03-10 08:23:04 +00:00
|
|
|
version = "1.8.0";
|
2021-11-10 16:17:52 +00:00
|
|
|
|
2015-05-06 01:08:11 +01:00
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pname}-${version}.tar.bz2";
|
2021-03-10 08:23:04 +00:00
|
|
|
sha256 = "sha256-5XRPI8VN0Vs/eDpoe9h57uKmkKRUWhW0nEzwN6pGSqI=";
|
2015-05-06 01:08:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"SUFFIX="
|
|
|
|
];
|
|
|
|
|
2021-11-10 16:17:52 +00:00
|
|
|
postPatch = ''
|
2018-10-07 16:35:03 +01:00
|
|
|
cd source
|
2021-11-09 22:00:59 +00:00
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace 'ldconfig' ""
|
|
|
|
'' + lib.optionalString (!stdenv.targetPlatform.isx86_64) ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace '-DENABLE_SSE2' ""
|
2015-05-06 01:08:11 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
fixupPhase = ''
|
|
|
|
ln -s $out/lib/libzita-resampler.so.$version $out/lib/libzita-resampler.so.1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "Resample library by Fons Adriaensen";
|
2019-09-09 00:38:31 +01:00
|
|
|
version = version;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [ lib.maintainers.magnetophon ];
|
|
|
|
platforms = lib.platforms.linux;
|
2015-05-06 01:08:11 +01:00
|
|
|
};
|
|
|
|
}
|