@ -1,4 +1,4 @@
{ stdenv , lib , makeDesktopItem , makeWrapper , lndir , config
{ stdenv , lib , makeDesktopItem , makeWrapper , makeBinaryWrapper , lndir , config
, fetchurl , zip , unzip , jq , xdg-utils , writeText
## various stuff that can be plugged in
@ -229,7 +229,7 @@ let
# Symbolic link: wrap the link's target.
oldExe = " $ ( r e a d l i n k - v - - c a n o n i c a l i z e - e x i s t i n g " $ executablePath " ) "
rm " $ e x e c u t a b l e P a t h "
elif wrapperCmd = $ ( strings - dw " $ e x e c u t a b l e P a t h " | sed - n ' / ^ makeCWrapper / , / ^ $ / p' ) ; [ [ $ wrapperCmd ] ] ; then
elif wrapperCmd = $ ( $ { makeBinaryWrapper . extractCmd } " $ e x e c u t a b l e P a t h " ) ; [ [ $ wrapperCmd ] ] ; then
# If the executable is a binary wrapper, we need to update its target to
# point to $out, but we can't just edit the binary in-place because of length
# issues. So we extract the command used to create the wrapper and add the