571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
39 lines
988 B
Nix
39 lines
988 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "zita-resampler";
|
|
version = "1.8.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pname}-${version}.tar.bz2";
|
|
sha256 = "sha256-5XRPI8VN0Vs/eDpoe9h57uKmkKRUWhW0nEzwN6pGSqI=";
|
|
};
|
|
|
|
makeFlags = [
|
|
"PREFIX=$(out)"
|
|
"SUFFIX="
|
|
];
|
|
|
|
postPatch = ''
|
|
cd source
|
|
substituteInPlace Makefile \
|
|
--replace 'ldconfig' ""
|
|
'' + lib.optionalString (!stdenv.hostPlatform.isx86_64) ''
|
|
substituteInPlace Makefile \
|
|
--replace '-DENABLE_SSE2' ""
|
|
'';
|
|
|
|
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";
|
|
license = lib.licenses.gpl2;
|
|
maintainers = [ lib.maintainers.magnetophon ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|