1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
4 pname = "zita-resampler";
8 url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pname}-${version}.tar.bz2";
9 sha256 = "sha256-5XRPI8VN0Vs/eDpoe9h57uKmkKRUWhW0nEzwN6pGSqI=";
19 substituteInPlace Makefile \
20 --replace 'ldconfig' ""
21 '' + lib.optionalString (!stdenv.targetPlatform.isx86_64) ''
22 substituteInPlace Makefile \
23 --replace '-DENABLE_SSE2' ""
27 ln -s $out/lib/libzita-resampler.so.$version $out/lib/libzita-resampler.so.1
31 description = "Resample library by Fons Adriaensen";
33 homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html";
34 license = lib.licenses.gpl2;
35 maintainers = [ lib.maintainers.magnetophon ];
36 platforms = lib.platforms.linux;