aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/wlroots
diff options
context:
space:
mode:
authorCole Mickens <cole.mickens@gmail.com>2018-10-24 14:40:20 -0700
committerCole Mickens <cole.mickens@gmail.com>2018-10-24 14:40:31 -0700
commit0f144e41958b449ea49f78b1326113cf6a974a89 (patch)
tree82ff759da69e49f5e093abed93609a7e7811362c /pkgs/development/libraries/wlroots
parentdce4042b26d88658fb81254111925b3797396e23 (diff)
wlroots.examples: prefix example binaries
Diffstat (limited to 'pkgs/development/libraries/wlroots')
-rw-r--r--pkgs/development/libraries/wlroots/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/libraries/wlroots/default.nix b/pkgs/development/libraries/wlroots/default.nix
index c1f401d0badb..4aff60631834 100644
--- a/pkgs/development/libraries/wlroots/default.nix
+++ b/pkgs/development/libraries/wlroots/default.nix
@@ -71,11 +71,12 @@ in stdenv.mkDerivation rec {
# screenshot output-layout multi-pointer rotation tablet touch pointer
# simple
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 \
--set-rpath "$examples/lib:${stdenv.lib.makeLibraryPath buildInputs}" \
"$binary"
- cp "$binary" $examples/bin/
+ cp "$binary" "$examples/bin/wlroots-$binary"
done
'';