File tree 3 files changed +15
-3
lines changed
3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 83
83
fi
84
84
85
85
${ if isManualLocalBuild then noAssetManagementScript else assetManagementScript }
86
- ldLibPath="$BIZHAWK_INT_SYSLIB_PATH:${ lib . makeLibraryPath bizhawkAssemblies . buildInputs } "
86
+ ${ "" /*
87
+ here's the breakdown for the GTK theme problem:
88
+ problem 1: `Gtk not found (missing LD_LIBRARY_PATH to libgtk-x11-2.0.so.0?), using built-in colorscheme` printed to stderr
89
+ fixed by adding `${pkgs.gtk2-x11.out}/lib` to `$LD_LIBRARY_PATH`
90
+ we're now in Adwaita (light) instead of ugly beige!
91
+ this does add a new warning to stderr though: `Unable to locate theme engine in module_path: "adwaita"`
92
+ sadly, it still doesn't seem to respect `$GTK_RC_FILES` or even `$GTK_THEME` :(
93
+ */ } ldLibPath="$BIZHAWK_INT_SYSLIB_PATH:${ lib . makeLibraryPath bizhawkAssemblies . buildInputs } "
87
94
if [ -z "$LD_LIBRARY_PATH" ]; then
88
95
export LD_LIBRARY_PATH="$ldLibPath"
89
96
else
Original file line number Diff line number Diff line change 16
16
# makedeps
17
17
, git
18
18
# rundeps
19
+ , gtk2-x11
19
20
, libgdiplus
20
21
, libGL
21
22
, lua
63
64
'' ;
64
65
dontFixup = true ;
65
66
} ;
66
- genDepsHostTargetFor = { hawkSourceInfo , mono' ? mono } : [
67
+ genDepsHostTargetFor = { hawkSourceInfo , gtk2-x11' ? getMainOutput gtk2-x11 , mono' ? mono } : [
68
+ gtk2-x11'
67
69
( getMainOutput libgdiplus )
68
70
lua
69
71
mono'
89
91
strictDeps = true ;
90
92
nativeBuildInputs = lib . optional finalAttrs . doCheck finalAttrs . mono
91
93
++ lib . optional finalAttrs . isLocalBuild git ;
94
+ gtk2-x11 = getMainOutput gtk2-x11 ;
92
95
buildInputs = genDepsHostTargetFor {
93
96
inherit hawkSourceInfo ;
97
+ gtk2-x11' = finalAttrs . gtk2-x11 ;
94
98
mono' = finalAttrs . mono ;
95
99
} ;
96
100
patches = lib . optional ( ! hawkSourceInfo . hasMiscTypeCheckerPatch_6afb3be98 ) ( fetchpatch {
Original file line number Diff line number Diff line change 38
38
, git ? pkgs . gitMinimal # only when building from-CWD (`-local`)
39
39
# rundeps
40
40
, coreutils ? pkgs . coreutils
41
+ , gtk2-x11 ? pkgs . gtk2-x11
41
42
, kate ? pkgs . kate . overrideAttrs ( oldAttrs : {
42
43
patches = ( oldAttrs . patches or [ ] ) ++ [ ( fetchpatch {
43
44
url = "https://invent.kde.org/utilities/kate/-/commit/9ddf4f0c9eb3c26a0ab33c862d2b161bcbdc6a6e.patch" ; # Fix name of OmniSharp LSP binary
110
111
buildDotnetModule fetchpatch fetchzip hardLinkJoin launchScriptsFor makeDesktopItem
111
112
releaseTagSourceInfos runCommand symlinkJoin writeShellScriptBin
112
113
git
113
- libgdiplus libGL lua openal SDL2 udev zstd
114
+ gtk2-x11 libgdiplus libGL lua openal SDL2 udev zstd
114
115
buildConfig doCheck extraDefines extraDotnetBuildFlags ;
115
116
mono = if mono != null
116
117
then mono # allow older Mono if set explicitly
You can’t perform that action at this time.
0 commit comments