File tree 3 files changed +47
-18
lines changed
3 files changed +47
-18
lines changed Original file line number Diff line number Diff line change 1
1
{ stdenv
2
2
, cargo
3
+ , rustc
3
4
, glib
4
5
, gtk4
5
6
, libadwaita
6
- , pango
7
7
, rustPlatform
8
- , rustfmt
9
8
, openssl
10
9
, pkg-config
11
10
, lib
12
- , wrapGAppsHook4
11
+ , wrapGAppsHook
13
12
, meson
14
13
, ninja
15
14
, gdk-pixbuf
16
15
, cmake
17
16
, desktop-file-utils
18
17
, gettext
19
18
, blueprint-compiler
20
- , gobject-introspection
21
19
, appstream-glib
22
- , clippy
23
20
, rust-analyzer
21
+ , fetchFromGitLab
22
+ , appstream
24
23
} :
25
24
26
- stdenv . mkDerivation rec {
25
+ let
26
+ gtk_4_11 = gtk4 . overrideAttrs ( old : rec {
27
+ version = "4.11.4" ;
28
+ src = fetchFromGitLab {
29
+ domain = "gitlab.gnome.org" ;
30
+ owner = "GNOME" ;
31
+ repo = "gtk" ;
32
+ rev = version ;
33
+ hash = "sha256-YobWcLJm8owjrz6c6aPMCrVZqYDvNpjIt5Zea2CtAZY=" ;
34
+ } ;
35
+ postPatch = old . postPatch + ''
36
+ patchShebangs build-aux/meson/gen-visibility-macros.py
37
+ '' ;
38
+ } ) ;
39
+ wrapGAppsHook_4_11 = wrapGAppsHook . override { gtk3 = gtk_4_11 ; } ;
40
+
41
+ libadwaita_1_4 = ( libadwaita . override { gtk4 = gtk_4_11 ; } ) . overrideAttrs ( old : rec {
42
+ version = "1.4.alpha" ;
43
+ src = fetchFromGitLab {
44
+ domain = "gitlab.gnome.org" ;
45
+ owner = "GNOME" ;
46
+ repo = "libadwaita" ;
47
+ rev = version ;
48
+ hash = "sha256-UUS5b6diRenpxxmGvVJoc6mVjEVGS9afLd8UKu+CJvI=" ;
49
+ } ;
50
+ buildInputs = old . buildInputs ++ [ appstream ] ;
51
+ } ) ;
52
+ in
53
+
54
+ stdenv . mkDerivation {
27
55
pname = "geopard" ;
28
56
version = "1.4.0" ;
29
57
@@ -45,10 +73,10 @@ stdenv.mkDerivation rec {
45
73
desktop-file-utils
46
74
appstream-glib
47
75
blueprint-compiler
48
- rustPlatform . rust . cargo
76
+ cargo
49
77
rustPlatform . cargoSetupHook
50
- rustPlatform . rust . rustc
51
- wrapGAppsHook4
78
+ rustc
79
+ wrapGAppsHook_4_11
52
80
] ;
53
81
54
82
buildInputs = [
@@ -58,10 +86,11 @@ stdenv.mkDerivation rec {
58
86
desktop-file-utils
59
87
gdk-pixbuf
60
88
glib
61
- gtk4
62
- libadwaita
89
+ gtk_4_11
90
+ libadwaita_1_4
63
91
openssl
64
92
] ;
93
+
65
94
meta = with lib ; {
66
95
homepage = "https://github.com/ranfdev/Geopard" ;
67
96
description = "Colorful, adaptive gemini browser" ;
Original file line number Diff line number Diff line change @@ -550,7 +550,7 @@ impl Window {
550
550
let imp = self . imp ( ) ;
551
551
let p = self . add_tab ( ) ;
552
552
imp. tab_view . set_selected_page ( & p) ;
553
- this . focus_url_bar ( ) ;
553
+ self . focus_url_bar ( ) ;
554
554
}
555
555
fn show_bookmarks ( & self ) {
556
556
let imp = self . imp ( ) ;
You can’t perform that action at this time.
0 commit comments