Skip to content

Commit

Permalink
nix: patchelf for webrender?
Browse files Browse the repository at this point in the history
  • Loading branch information
declantsien committed Jan 3, 2023
1 parent 517e244 commit c1a8997
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -246,21 +246,21 @@

dontPatchShebangs = true; #straight_watch_callback.py: unsupported interpreter directive "#!/usr/bin/env -S python3 -u"

postFixup =
(old.postFixup or "")
+ (
if withWebrender
then
lib.concatStringsSep "\n" [
(lib.optionalString stdenv.isLinux ''
patchelf --set-rpath \
"$(patchelf --print-rpath "$out/bin/.emacs-29.0.60-wrapped"):${lib.makeLibraryPath rpathLibs}" \
"$out/bin/.emacs-29.0.60-wrapped"
patchelf --add-needed "libfontconfig.so" "$out/bin/.emacs-29.0.60-wrapped"
'')
]
else ""
);
# postFixup =
# (old.postFixup or "")
# + (
# if withWebrender
# then
# lib.concatStringsSep "\n" [
# (lib.optionalString stdenv.isLinux ''
# patchelf --set-rpath \
# "$(patchelf --print-rpath "$out/bin/.emacs-29.0.60-wrapped"):${lib.makeLibraryPath rpathLibs}" \
# "$out/bin/.emacs-29.0.60-wrapped"
# patchelf --add-needed "libfontconfig.so" "$out/bin/.emacs-29.0.60-wrapped"
# '')
# ]
# else ""
# );
});
};
};
Expand Down

0 comments on commit c1a8997

Please sign in to comment.