Merge pull request #49078 from colemickens/pr-wlroots
wlroots.examples: prefix example binaries
This commit is contained in:
commit
8ea2f0d1a0
|
@ -71,11 +71,12 @@ in stdenv.mkDerivation rec {
|
||||||
# screenshot output-layout multi-pointer rotation tablet touch pointer
|
# screenshot output-layout multi-pointer rotation tablet touch pointer
|
||||||
# simple
|
# simple
|
||||||
mkdir -p $examples/bin
|
mkdir -p $examples/bin
|
||||||
for binary in $(find ./examples -executable -type f | grep -vE '\.so'); do
|
cd ./examples
|
||||||
|
for binary in $(find . -executable -type f -printf '%P\n' | grep -vE '\.so'); do
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-rpath "$examples/lib:${stdenv.lib.makeLibraryPath buildInputs}" \
|
--set-rpath "$examples/lib:${stdenv.lib.makeLibraryPath buildInputs}" \
|
||||||
"$binary"
|
"$binary"
|
||||||
cp "$binary" $examples/bin/
|
cp "$binary" "$examples/bin/wlroots-$binary"
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue