Skip to content

Commit 8e440f1

Browse files
authored
Merge pull request #142810 from bobby285271/pantheon
Pantheon updates 2021-10-25, 2021-10-26
2 parents 8f6f42b + 04af891 commit 8e440f1

20 files changed

Lines changed: 157 additions & 192 deletions

File tree

nixos/modules/services/x11/desktop-managers/pantheon.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,10 @@ in
227227
environment.sessionVariables.GTK_CSD = "1";
228228
environment.etc."gtk-3.0/settings.ini".source = "${pkgs.pantheon.elementary-default-settings}/etc/gtk-3.0/settings.ini";
229229

230-
xdg.portal.extraPortals = [
231-
pkgs.pantheon.elementary-files
230+
xdg.portal.extraPortals = with pkgs; [
231+
pantheon.elementary-files
232+
pantheon.elementary-settings-daemon
233+
xdg-desktop-portal-pantheon
232234
];
233235

234236
# Override GSettings schemas

pkgs/applications/misc/tootle/default.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
, fetchFromGitHub
33
, nix-update-script
44
, fetchpatch
5-
, vala
5+
, vala_0_52
66
, meson
77
, ninja
88
, pkg-config
@@ -35,7 +35,9 @@ stdenv.mkDerivation rec {
3535
ninja
3636
pkg-config
3737
python3
38-
vala
38+
# Does not build with vala 0.54
39+
# https://github.com/bleakgrey/tootle/issues/337
40+
vala_0_52
3941
wrapGAppsHook
4042
];
4143

pkgs/desktops/gnome/core/epiphany/default.nix

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
, ninja
44
, gettext
55
, fetchurl
6+
, fetchpatch
67
, pkg-config
78
, gtk3
89
, glib
@@ -46,12 +47,30 @@ stdenv.mkDerivation rec {
4647
sha256 = "s50YJUkllbC3TF1qZoaoV/lBnfpMAvgBPCl7yHDibdA=";
4748
};
4849

49-
patches = lib.optionals withPantheon [
50-
# Make this respect dark mode settings from Pantheon
50+
patches = [
51+
# tab-view: Update close button position on startup
52+
# https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1025
53+
(fetchpatch {
54+
url = "https://gitlab.gnome.org/GNOME/epiphany/-/commit/6e9d6d3cf7fa7ddf21a70e9816a5cd4767a79523.patch";
55+
sha256 = "sha256-lBVliGCIKwTvsYnWjAcmJxhTg1HS/2x4wlOh+4sx/xQ=";
56+
})
57+
] ++ lib.optionals withPantheon [
58+
# Pantheon specific patches for epiphany
5159
# https://github.com/elementary/browser
52-
# The patch currently differs from upstream (updated for epiphany 40 and 41).
53-
./pantheon-dark-style.patch
54-
./pantheon-navigation-buttons.patch
60+
#
61+
# Make this respect dark mode settings from Pantheon
62+
# https://github.com/elementary/browser/pull/21
63+
# https://github.com/elementary/browser/pull/41
64+
(fetchpatch {
65+
url = "https://raw.githubusercontent.com/elementary/browser/cc17559a7ac6effe593712b4f3d0bbefde6e3b62/dark-style.patch";
66+
sha256 = "sha256-RzMUc9P51UN3tRFefzRtMniXR9duOOmLj5eu5gL2TEQ=";
67+
})
68+
# Patch to unlink nav buttons
69+
# https://github.com/elementary/browser/pull/18
70+
(fetchpatch {
71+
url = "https://raw.githubusercontent.com/elementary/browser/cc17559a7ac6effe593712b4f3d0bbefde6e3b62/navigation-buttons.patch";
72+
sha256 = "sha256-G1/JUjn/8DyO9sgL/5Kq205KbTOs4EMi4Vf3cJ8FHXU=";
73+
})
5574
];
5675

5776
nativeBuildInputs = [

pkgs/desktops/gnome/core/epiphany/pantheon-dark-style.patch

Lines changed: 0 additions & 76 deletions
This file was deleted.

pkgs/desktops/gnome/core/epiphany/pantheon-navigation-buttons.patch

Lines changed: 0 additions & 12 deletions
This file was deleted.

pkgs/desktops/pantheon/apps/appcenter/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030

3131
stdenv.mkDerivation rec {
3232
pname = "appcenter";
33-
version = "3.8.0";
33+
version = "3.8.1";
3434

3535
src = fetchFromGitHub {
3636
owner = "elementary";
3737
repo = pname;
3838
rev = version;
39-
sha256 = "07lkdpnjj9pxbq8h794qjiidvnysvzx0132w98r1wg9k7ca170bj";
39+
sha256 = "sha256-d7DGyAC8itBxTfuabDPN16W4S4d42s5UPp8AusZfy5k=";
4040
};
4141

4242
patches = [

pkgs/desktops/pantheon/apps/appcenter/drop-homepage-banner.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
From b1e09653d755ca6ffd03a1e3e67750e6bcc2bc6f Mon Sep 17 00:00:00 2001
1+
From c1916699cd388cc8d9968127e43ba955471623bf Mon Sep 17 00:00:00 2001
22
From: Bobby Rong <rjl931189261@126.com>
3-
Date: Wed, 22 Sep 2021 11:54:48 +0800
3+
Date: Wed, 27 Oct 2021 09:33:15 +0800
44
Subject: [PATCH 2/2] Drop homepage banner
55

66
---
77
src/Views/Homepage.vala | 181 +---------------------------------------
88
1 file changed, 1 insertion(+), 180 deletions(-)
99

1010
diff --git a/src/Views/Homepage.vala b/src/Views/Homepage.vala
11-
index 576fc02c..80a1d221 100644
11+
index 52cb36cc..80a1d221 100644
1212
--- a/src/Views/Homepage.vala
1313
+++ b/src/Views/Homepage.vala
1414
@@ -31,67 +31,12 @@ public class AppCenter.Homepage : AbstractView {
@@ -193,7 +193,7 @@ index 576fc02c..80a1d221 100644
193193
- }
194194
- }
195195
-
196-
- if (!installed && !(package in packages_in_banner) && !package.is_explicit) {
196+
- if (!installed && !(package in packages_in_banner)) {
197197
- var package_row = new AppCenter.Widgets.ListPackageRowGrid (package);
198198
- recently_updated_carousel.add (package_row);
199199
- }

pkgs/desktops/pantheon/apps/elementary-calculator/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121

2222
stdenv.mkDerivation rec {
2323
pname = "elementary-calculator";
24-
version = "1.7.0";
24+
version = "1.7.1";
2525

2626
repoName = "calculator";
2727

2828
src = fetchFromGitHub {
2929
owner = "elementary";
3030
repo = repoName;
3131
rev = version;
32-
sha256 = "1kl2iximcmbk8inklb2xav7dp08lp5pn9xxa59327zw13gdy8fkf";
32+
sha256 = "sha256-GoQFWhEhUBVLYL1vsIIBMT8pKc0dK/ploiGfUtJAJQU=";
3333
};
3434

3535
passthru = {

pkgs/desktops/pantheon/apps/elementary-calendar/default.nix

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,15 @@
2828

2929
stdenv.mkDerivation rec {
3030
pname = "elementary-calendar";
31-
version = "6.0.2";
31+
version = "6.0.3";
3232

3333
repoName = "calendar";
3434

3535
src = fetchFromGitHub {
3636
owner = "elementary";
3737
repo = repoName;
3838
rev = version;
39-
sha256 = "16xp8gfgpyz9xpjsxm6jlk4skkknj65g0q4x0qvw9sg9f1p6a514";
40-
};
41-
42-
passthru = {
43-
updateScript = nix-update-script {
44-
attrPath = "pantheon.${pname}";
45-
};
39+
sha256 = "sha256-+RQUiJLuCIbmcbtsOCfF9HYFrxtldZMbg2vg/a/IOaY=";
4640
};
4741

4842
nativeBuildInputs = [
@@ -78,6 +72,12 @@ stdenv.mkDerivation rec {
7872
patchShebangs meson/post_install.py
7973
'';
8074

75+
passthru = {
76+
updateScript = nix-update-script {
77+
attrPath = "pantheon.${pname}";
78+
};
79+
};
80+
8181
meta = with lib; {
8282
description = "Desktop calendar app designed for elementary OS";
8383
homepage = "https://github.com/elementary/calendar";

pkgs/desktops/pantheon/apps/elementary-camera/default.nix

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,15 @@
2525

2626
stdenv.mkDerivation rec {
2727
pname = "elementary-camera";
28-
version = "6.0.0";
28+
version = "6.0.1";
2929

3030
repoName = "camera";
3131

3232
src = fetchFromGitHub {
3333
owner = "elementary";
3434
repo = repoName;
3535
rev = version;
36-
sha256 = "1z5c6pkc7psglxwzby5idsdxvplpi28ckjxrwdngnr22knfdcgag";
37-
};
38-
39-
passthru = {
40-
updateScript = nix-update-script {
41-
attrPath = "pantheon.${pname}";
42-
};
36+
sha256 = "sha256-OdBinryF6XTcvtY4A1wdDVazjf/VritEGF97ts6d4RY=";
4337
};
4438

4539
nativeBuildInputs = [
@@ -75,6 +69,12 @@ stdenv.mkDerivation rec {
7569
patchShebangs meson/post_install.py
7670
'';
7771

72+
passthru = {
73+
updateScript = nix-update-script {
74+
attrPath = "pantheon.${pname}";
75+
};
76+
};
77+
7878
meta = with lib; {
7979
description = "Camera app designed for elementary OS";
8080
homepage = "https://github.com/elementary/camera";

0 commit comments

Comments
 (0)