File tree 2 files changed +11
-3
lines changed
pkgs/applications/networking/browsers/firefox
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,6 @@ stdenv.mkDerivation (rec {
200
200
gtk = gtk2 ;
201
201
inherit nspr ;
202
202
inherit ffmpegSupport ;
203
- } ;
203
+ } // lib . optionalAttrs gtk3Support { inherit gtk3 ; } ;
204
204
205
205
} // overrides )
Original file line number Diff line number Diff line change @@ -74,7 +74,9 @@ in stdenv.mkDerivation {
74
74
] ;
75
75
} ;
76
76
77
- buildInputs = [ makeWrapper ] ++ lib . optionals ( ! ffmpegSupport ) gst-plugins ;
77
+ buildInputs = [ makeWrapper ]
78
+ ++ lib . optional ( ! ffmpegSupport ) gst-plugins
79
+ ++ lib . optional ( browser ? gtk3 ) browser . gtk3 ;
78
80
79
81
buildCommand = ''
80
82
if [ ! -x "${ browser } /bin/${ browserName } " ]
@@ -92,7 +94,13 @@ in stdenv.mkDerivation {
92
94
--prefix-contents PATH ':' "$(filterExisting $(addSuffix /extra-bin-path $plugins))" \
93
95
--suffix PATH ':' "$out/bin" \
94
96
--set MOZ_APP_LAUNCHER "${ browserName } ${ nameSuffix } " \
95
- ${ lib . optionalString ( ! ffmpegSupport ) ''--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH"'' }
97
+ ${ lib . optionalString ( ! ffmpegSupport )
98
+ ''--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH"''
99
+ + lib . optionalString ( browser ? gtk3 )
100
+ ''--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
101
+ --suffix XDG_DATA_DIRS : '${ gnome3 . defaultIconTheme } /share'
102
+ ''
103
+ }
96
104
97
105
if [ -e "${ browser } /share/icons" ]; then
98
106
mkdir -p "$out/share"
You can’t perform that action at this time.
1 commit comments
ttuegel commentedon May 10, 2017
@vcunat This fix also needs to be applied to
firefox-bin
.