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
40
pkgs/development/libraries/glibc/mtrace.nix
Normal file
40
pkgs/development/libraries/glibc/mtrace.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ glibc, perl }:
|
||||
|
||||
# Small wrapper which only exposes `mtrace(3)` from `glibc`. This can't be placed
|
||||
# into `glibc` itself because it depends on Perl which would mean that the final
|
||||
# `glibc` inside a stdenv bootstrap has a dependency `glibc -> perl -> bootstrap tools`,
|
||||
# so this is now in its own package that isn't used for bootstrapping.
|
||||
#
|
||||
# `glibc` needs to be overridden here because it's still needed to `./configure` the source in order
|
||||
# to have a build environment where we can call the needed make target.
|
||||
|
||||
glibc.overrideAttrs (oldAttrs: {
|
||||
pname = "glibc-mtrace";
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
mkdir malloc
|
||||
make -C ../glibc-${glibc.minorRelease}/malloc objdir=`pwd` `pwd`/malloc/mtrace;
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
mv malloc/mtrace $out/bin/
|
||||
'';
|
||||
|
||||
# Perl checked during configure
|
||||
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ perl ];
|
||||
# Perl shebang used for `mtrace`.
|
||||
buildInputs = oldAttrs.buildInputs ++ [ perl ];
|
||||
|
||||
# Reset a few things declared by `pkgs.glibc`.
|
||||
outputs = [ "out" ];
|
||||
separateDebugInfo = false;
|
||||
|
||||
meta = oldAttrs.meta // {
|
||||
description = "Perl script used to interpret and provide human readable output of the trace log contained in the file mtracedata, whose contents were produced by mtrace(3).";
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue