androidndk: wrap scripts in $out/libexec
This commit is contained in:
parent
7326ab13a9
commit
37e73450d6
@ -64,6 +64,11 @@ stdenv.mkDerivation rec {
|
|||||||
sed -i -e ${sed_script_2} ndk-which
|
sed -i -e ${sed_script_2} ndk-which
|
||||||
# a bash script
|
# a bash script
|
||||||
patchShebangs ndk-which
|
patchShebangs ndk-which
|
||||||
|
# wrap
|
||||||
|
for i in ndk-build ndk-gdb ndk-gdb-py ndk-which
|
||||||
|
do
|
||||||
|
wrapProgram "$(pwd)/$i" --prefix PATH : "${runtime_paths}"
|
||||||
|
done
|
||||||
# make some executables available in PATH
|
# make some executables available in PATH
|
||||||
mkdir -pv ${bin_path}
|
mkdir -pv ${bin_path}
|
||||||
for i in \
|
for i in \
|
||||||
@ -71,11 +76,6 @@ stdenv.mkDerivation rec {
|
|||||||
do
|
do
|
||||||
ln -sf ${pkg_path}/$i ${bin_path}/$i
|
ln -sf ${pkg_path}/$i ${bin_path}/$i
|
||||||
done
|
done
|
||||||
# wrap
|
|
||||||
for i in ndk-build ndk-gdb ndk-gdb-py ndk-which
|
|
||||||
do
|
|
||||||
wrapProgram "${bin_path}/$i" --prefix PATH : "${runtime_paths}"
|
|
||||||
done
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -64,6 +64,11 @@ stdenv.mkDerivation rec {
|
|||||||
sed -i -e ${sed_script_2} ndk-which
|
sed -i -e ${sed_script_2} ndk-which
|
||||||
# a bash script
|
# a bash script
|
||||||
patchShebangs ndk-which
|
patchShebangs ndk-which
|
||||||
|
# wrap
|
||||||
|
for i in ndk-build ndk-gdb ndk-gdb-py ndk-which
|
||||||
|
do
|
||||||
|
wrapProgram "$(pwd)/$i" --prefix PATH : "${runtime_paths}"
|
||||||
|
done
|
||||||
# make some executables available in PATH
|
# make some executables available in PATH
|
||||||
mkdir -pv ${bin_path}
|
mkdir -pv ${bin_path}
|
||||||
for i in \
|
for i in \
|
||||||
@ -71,10 +76,5 @@ stdenv.mkDerivation rec {
|
|||||||
do
|
do
|
||||||
ln -sf ${pkg_path}/$i ${bin_path}/$i
|
ln -sf ${pkg_path}/$i ${bin_path}/$i
|
||||||
done
|
done
|
||||||
# wrap
|
|
||||||
for i in ndk-build ndk-gdb ndk-gdb-py ndk-which
|
|
||||||
do
|
|
||||||
wrapProgram "${bin_path}/$i" --prefix PATH : "${runtime_paths}"
|
|
||||||
done
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user