Skip to content

Commit c1a8997

Browse files
committed
nix: patchelf for webrender?
1 parent 517e244 commit c1a8997

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

flake.nix

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -246,21 +246,21 @@
246246

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

249-
postFixup =
250-
(old.postFixup or "")
251-
+ (
252-
if withWebrender
253-
then
254-
lib.concatStringsSep "\n" [
255-
(lib.optionalString stdenv.isLinux ''
256-
patchelf --set-rpath \
257-
"$(patchelf --print-rpath "$out/bin/.emacs-29.0.60-wrapped"):${lib.makeLibraryPath rpathLibs}" \
258-
"$out/bin/.emacs-29.0.60-wrapped"
259-
patchelf --add-needed "libfontconfig.so" "$out/bin/.emacs-29.0.60-wrapped"
260-
'')
261-
]
262-
else ""
263-
);
249+
# postFixup =
250+
# (old.postFixup or "")
251+
# + (
252+
# if withWebrender
253+
# then
254+
# lib.concatStringsSep "\n" [
255+
# (lib.optionalString stdenv.isLinux ''
256+
# patchelf --set-rpath \
257+
# "$(patchelf --print-rpath "$out/bin/.emacs-29.0.60-wrapped"):${lib.makeLibraryPath rpathLibs}" \
258+
# "$out/bin/.emacs-29.0.60-wrapped"
259+
# patchelf --add-needed "libfontconfig.so" "$out/bin/.emacs-29.0.60-wrapped"
260+
# '')
261+
# ]
262+
# else ""
263+
# );
264264
});
265265
};
266266
};

0 commit comments

Comments
 (0)