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
52
pkgs/development/libraries/libunwind/default.nix
Normal file
52
pkgs/development/libraries/libunwind/default.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ stdenv, lib, fetchurl, fetchpatch, autoreconfHook, xz, buildPackages }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libunwind";
|
||||
version = "1.6.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://savannah/libunwind/${pname}-${version}.tar.gz";
|
||||
sha256 = "sha256-SmrsZmmR+0XQiJxErt6K1usQgHHDVU/N/2cfnJR5SXY=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix for aarch64 and non-4K pages. Remove once upgraded past 1.6.2.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/libunwind/libunwind/commit/e85b65cec757ef589f28957d0c6c21c498a03bdf.patch";
|
||||
sha256 = "1lnlygvhqrdrjgw303pg2k2k4ms4gaghpjsgmhk47q83vy1yjwfg";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = if stdenv.cc.isClang then ''
|
||||
substituteInPlace configure.ac --replace "-lgcc_s" ""
|
||||
'' else lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||
substituteInPlace configure.ac --replace "-lgcc_s" "-lgcc_eh"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
outputs = [ "out" "dev" "devman" ];
|
||||
|
||||
# Without latex2man, no man pages are installed despite being
|
||||
# prebuilt in the source tarball.
|
||||
configureFlags = [ "LATEX2MAN=${buildPackages.coreutils}/bin/true" ];
|
||||
|
||||
propagatedBuildInputs = [ xz ];
|
||||
|
||||
postInstall = ''
|
||||
find $out -name \*.la | while read file; do
|
||||
sed -i 's,-llzma,${xz.out}/lib/liblzma.la,' $file
|
||||
done
|
||||
'';
|
||||
|
||||
doCheck = false; # fails
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.nongnu.org/libunwind";
|
||||
description = "A portable and efficient API to determine the call-chain of a program";
|
||||
maintainers = with maintainers; [ orivej ];
|
||||
platforms = platforms.linux;
|
||||
badPlatforms = [ "riscv32-linux" ];
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue