diff options
author | Michael Weiss <dev.primeos@gmail.com> | 2018-10-28 21:13:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-28 21:13:23 +0100 |
commit | 8ea2f0d1a037ea82e5bcff5d1d07102a03de47fb (patch) | |
tree | ceabe02dca157a20d2b25f3013f0e800cd5e5546 /pkgs | |
parent | b9bd8dd4d3d0dfd5e6839fd0321d400123d033f4 (diff) | |
parent | 0f144e41958b449ea49f78b1326113cf6a974a89 (diff) | |
download | nixlib-8ea2f0d1a037ea82e5bcff5d1d07102a03de47fb.tar nixlib-8ea2f0d1a037ea82e5bcff5d1d07102a03de47fb.tar.gz nixlib-8ea2f0d1a037ea82e5bcff5d1d07102a03de47fb.tar.bz2 nixlib-8ea2f0d1a037ea82e5bcff5d1d07102a03de47fb.tar.lz nixlib-8ea2f0d1a037ea82e5bcff5d1d07102a03de47fb.tar.xz nixlib-8ea2f0d1a037ea82e5bcff5d1d07102a03de47fb.tar.zst nixlib-8ea2f0d1a037ea82e5bcff5d1d07102a03de47fb.zip |
Merge pull request #49078 from colemickens/pr-wlroots
wlroots.examples: prefix example binaries
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/wlroots/default.nix | 5 |
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 ''; |