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
43
pkgs/tools/audio/alsaequal/default.nix
Normal file
43
pkgs/tools/audio/alsaequal/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib, stdenv, fetchurl
|
||||
, alsa-lib, caps
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "alsaequal";
|
||||
version = "0.6";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://thedigitalmachine.net/tools/alsaequal-${version}.tar.bz2";
|
||||
sha256 = "1w3g9q5z3nrn3mwdhaq6zsg0jila8d102dgwgrhj9vfx58apsvli";
|
||||
};
|
||||
|
||||
buildInputs = [ alsa-lib ];
|
||||
|
||||
makeFlags = [ "DESTDIR=$(out)" ];
|
||||
|
||||
# Borrowed from Arch Linux's AUR
|
||||
patches = [
|
||||
# Adds executable permissions to resulting libraries
|
||||
# and changes their destination directory from "usr/lib/alsa-lib" to "lib/alsa-lib" to better align with nixpkgs filesystem hierarchy.
|
||||
./makefile.patch
|
||||
# Fixes control port check, which resulted in false error.
|
||||
./false_error.patch
|
||||
# Fixes name change of an "Eq" to "Eq10" method in version 9 of caps library.
|
||||
./caps_9.x.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's#/usr/lib/ladspa/caps\.so#${caps}/lib/ladspa/caps\.so#g' ctl_equal.c pcm_equal.c
|
||||
'';
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p "$out/lib/alsa-lib"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Real-time adjustable equalizer plugin for ALSA";
|
||||
homepage = "https://thedigitalmachine.net/alsaequal.html";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ ymeister ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue