Skip to content

Commit 4b96f27

Browse files
committed
Fix Nix build
1 parent 260fc09 commit 4b96f27

File tree

3 files changed

+47
-18
lines changed

3 files changed

+47
-18
lines changed

flake.lock

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/geopard.nix

+40-11
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,57 @@
11
{ stdenv
22
, cargo
3+
, rustc
34
, glib
45
, gtk4
56
, libadwaita
6-
, pango
77
, rustPlatform
8-
, rustfmt
98
, openssl
109
, pkg-config
1110
, lib
12-
, wrapGAppsHook4
11+
, wrapGAppsHook
1312
, meson
1413
, ninja
1514
, gdk-pixbuf
1615
, cmake
1716
, desktop-file-utils
1817
, gettext
1918
, blueprint-compiler
20-
, gobject-introspection
2119
, appstream-glib
22-
, clippy
2320
, rust-analyzer
21+
, fetchFromGitLab
22+
, appstream
2423
}:
2524

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 {
2755
pname = "geopard";
2856
version = "1.4.0";
2957

@@ -45,10 +73,10 @@ stdenv.mkDerivation rec {
4573
desktop-file-utils
4674
appstream-glib
4775
blueprint-compiler
48-
rustPlatform.rust.cargo
76+
cargo
4977
rustPlatform.cargoSetupHook
50-
rustPlatform.rust.rustc
51-
wrapGAppsHook4
78+
rustc
79+
wrapGAppsHook_4_11
5280
];
5381

5482
buildInputs = [
@@ -58,10 +86,11 @@ stdenv.mkDerivation rec {
5886
desktop-file-utils
5987
gdk-pixbuf
6088
glib
61-
gtk4
62-
libadwaita
89+
gtk_4_11
90+
libadwaita_1_4
6391
openssl
6492
];
93+
6594
meta = with lib; {
6695
homepage = "https://github.com/ranfdev/Geopard";
6796
description = "Colorful, adaptive gemini browser";

src/widgets/window.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ impl Window {
550550
let imp = self.imp();
551551
let p = self.add_tab();
552552
imp.tab_view.set_selected_page(&p);
553-
this.focus_url_bar();
553+
self.focus_url_bar();
554554
}
555555
fn show_bookmarks(&self) {
556556
let imp = self.imp();

0 commit comments

Comments
 (0)