uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
38
pkgs/development/libraries/audio/zita-resampler/default.nix
Normal file
38
pkgs/development/libraries/audio/zita-resampler/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ 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.targetPlatform.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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue