File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed
Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 1212 audioSupport ? true ,
1313 alsa-lib ,
1414 webcamSupport ? false ,
15+ libGL ,
16+ libxkbcommon ,
17+ wayland ,
18+ xorg ,
19+ windowSupport ? false ,
1520
1621 runCommand ,
1722} :
@@ -49,7 +54,24 @@ lib.fix (
4954 buildFeatures =
5055 [ "libffi/system" ] # force libffi to be linked dynamically instead of rebuilding it
5156 ++ lib . optional audioSupport "audio"
52- ++ lib . optional webcamSupport "webcam" ;
57+ ++ lib . optional webcamSupport "webcam"
58+ ++ lib . optional windowSupport "window" ;
59+
60+ postFixup =
61+ let
62+ runtimeDependencies = lib . optionals windowSupport [
63+ libGL
64+ libxkbcommon
65+ wayland
66+ xorg . libX11
67+ xorg . libXcursor
68+ xorg . libXi
69+ xorg . libXrandr
70+ ] ;
71+ in
72+ lib . optionalString ( runtimeDependencies != [ ] && stdenv . hostPlatform . isLinux ) ''
73+ patchelf --add-rpath ${ lib . makeLibraryPath runtimeDependencies } $out/bin/uiua
74+ '' ;
5375
5476 nativeInstallCheckInputs = [ versionCheckHook ] ;
5577 versionCheckProgramArg = "--version" ;
You can’t perform that action at this time.
0 commit comments