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
27
pkgs/development/libraries/wtk/builder.sh
Normal file
27
pkgs/development/libraries/wtk/builder.sh
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
source $stdenv/setup
|
||||
|
||||
mkdir unzipped
|
||||
pushd unzipped
|
||||
unzip $src || true
|
||||
popd
|
||||
|
||||
mkdir -p $out
|
||||
mv unzipped/* $out/
|
||||
|
||||
# Remove crap in the root directory.
|
||||
for file in $out/*
|
||||
do
|
||||
if test -f $file ; then
|
||||
rm $file
|
||||
fi
|
||||
done
|
||||
|
||||
# Set the dynamic linker.
|
||||
rpath=
|
||||
for i in $libraries; do
|
||||
rpath=$rpath${rpath:+:}$i/lib
|
||||
done
|
||||
find $out -type f -perm -0100 \
|
||||
-exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" {} \;
|
||||
find $out -type f -perm -0100 \
|
||||
-exec patchelf --set-rpath "$rpath" {} \;
|
||||
Loading…
Add table
Add a link
Reference in a new issue