Skip to content

Commit 98cca90

Browse files
authored
phosh: 0.44.1 -> 0.48.0 (#433732)
2 parents 4d98e8a + 97c7fb1 commit 98cca90

File tree

5 files changed

+110
-28
lines changed

5 files changed

+110
-28
lines changed

maintainers/maintainer-list.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2077,6 +2077,12 @@
20772077
githubId = 29145250;
20782078
name = "Armeen Mahdian";
20792079
};
2080+
armelclo = {
2081+
email = "[email protected]";
2082+
github = "ArmelClo";
2083+
githubId = 61419525;
2084+
name = "Armel Cloarec";
2085+
};
20802086
armijnhemel = {
20812087
email = "[email protected]";
20822088
github = "armijnhemel";

pkgs/applications/window-managers/phosh/default.nix

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
lib,
33
stdenv,
4-
fetchurl,
5-
directoryListingUpdater,
4+
fetchFromGitLab,
5+
nix-update-script,
66
meson,
77
ninja,
88
pkg-config,
@@ -39,16 +39,40 @@
3939
evolution-data-server,
4040
nixosTests,
4141
gmobile,
42+
appstream,
4243
}:
4344

45+
let
46+
# Derived from subprojects/libcall-ui.wrap
47+
libcall-ui = fetchFromGitLab {
48+
domain = "gitlab.gnome.org";
49+
group = "World";
50+
owner = "Phosh";
51+
repo = "libcall-ui";
52+
tag = "v0.1.4";
53+
hash = "sha256-6fiqdvagcMnvaZ9UxC05haBwObcsqwgJL/V03LuSMF8=";
54+
};
55+
56+
# Derived from subprojects/gvc.wrap
57+
gvc = fetchFromGitLab {
58+
domain = "gitlab.gnome.org";
59+
owner = "GNOME";
60+
repo = "libgnome-volume-control";
61+
rev = "5f9768a2eac29c1ed56f1fbb449a77a3523683b6";
62+
hash = "sha256-gdgTnxzH8BeYQAsvv++Yq/8wHi7ISk2LTBfU8hk12NM=";
63+
};
64+
in
4465
stdenv.mkDerivation (finalAttrs: {
4566
pname = "phosh";
46-
version = "0.44.1";
67+
version = "0.48.0";
4768

48-
src = fetchurl {
49-
# Release tarball which includes subprojects gvc and libcall-ui
50-
url = with finalAttrs; "https://sources.phosh.mobi/releases/${pname}/${pname}-${version}.tar.xz";
51-
hash = "sha256-rczGr7YSmVFu13oa3iSTmSQ4jsjl7lv38zQtD7WmDis=";
69+
src = fetchFromGitLab {
70+
domain = "gitlab.gnome.org";
71+
group = "World";
72+
owner = "Phosh";
73+
repo = "phosh";
74+
tag = "v${finalAttrs.version}";
75+
hash = "sha256-HnjR0hVjkGfoD8RYCJqpGjRhl0W+QO8tYwSo71XFL6A=";
5276
};
5377

5478
nativeBuildInputs = [
@@ -71,7 +95,6 @@ stdenv.mkDerivation (finalAttrs: {
7195
callaudiod
7296
evolution-data-server
7397
pulseaudio
74-
glib
7598
modemmanager
7699
gcr
77100
networkmanager
@@ -87,6 +110,7 @@ stdenv.mkDerivation (finalAttrs: {
87110
upower
88111
wayland
89112
feedbackd
113+
appstream
90114
];
91115

92116
nativeCheckInputs = [
@@ -97,10 +121,16 @@ stdenv.mkDerivation (finalAttrs: {
97121
# Temporarily disabled - Test is broken (SIGABRT)
98122
doCheck = false;
99123

124+
postPatch = ''
125+
ln -s ${libcall-ui} subprojects/libcall-ui
126+
ln -s ${gvc} subprojects/gvc
127+
'';
128+
100129
mesonFlags = [
101130
"-Dcompositor=${phoc}/bin/phoc"
102131
# Save some time building if tests are disabled
103132
"-Dtests=${lib.boolToString finalAttrs.finalPackage.doCheck}"
133+
"-Dc_args=-I${glib.dev}/include/gio-unix-2.0/"
104134
];
105135

106136
checkPhase = ''
@@ -123,7 +153,7 @@ stdenv.mkDerivation (finalAttrs: {
123153
passthru = {
124154
providedSessions = [ "phosh" ];
125155
tests.phosh = nixosTests.phosh;
126-
updateScript = directoryListingUpdater { };
156+
updateScript = nix-update-script { };
127157
};
128158

129159
meta = with lib; {
@@ -134,6 +164,7 @@ stdenv.mkDerivation (finalAttrs: {
134164
maintainers = with maintainers; [
135165
masipcat
136166
zhaofengli
167+
armelclo
137168
];
138169
platforms = platforms.linux;
139170
mainProgram = "phosh-session";

pkgs/applications/window-managers/phosh/phosh-mobile-settings.nix

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
stdenv,
44
fetchFromGitLab,
55
nixosTests,
6-
directoryListingUpdater,
6+
nix-update-script,
77
meson,
88
ninja,
99
pkg-config,
@@ -20,19 +20,34 @@
2020
json-glib,
2121
gsound,
2222
gmobile,
23+
gnome-desktop,
24+
libpulseaudio,
25+
libportal,
26+
libportal-gtk4,
27+
glib,
2328
}:
2429

30+
let
31+
# Derived from subprojects/gvc.wrap
32+
gvc = fetchFromGitLab {
33+
domain = "gitlab.gnome.org";
34+
owner = "GNOME";
35+
repo = "libgnome-volume-control";
36+
rev = "5f9768a2eac29c1ed56f1fbb449a77a3523683b6";
37+
hash = "sha256-gdgTnxzH8BeYQAsvv++Yq/8wHi7ISk2LTBfU8hk12NM=";
38+
};
39+
in
2540
stdenv.mkDerivation rec {
2641
pname = "phosh-mobile-settings";
27-
version = "0.41.0";
42+
version = "0.48.0";
2843

2944
src = fetchFromGitLab {
3045
domain = "gitlab.gnome.org";
3146
group = "World";
3247
owner = "Phosh";
3348
repo = "phosh-mobile-settings";
3449
rev = "v${version}";
35-
hash = "sha256-t5qngjQcjPltUGbcZ+CF5FbZtZkV/cD3xUhuApQbKHo=";
50+
hash = "sha256-XnXwTjZnPlGNUmqizcIQdJ6SmrQ0dq9jNEhNsmDPzyM=";
3651
};
3752

3853
nativeBuildInputs = [
@@ -42,6 +57,7 @@ stdenv.mkDerivation rec {
4257
pkg-config
4358
wayland-scanner
4459
wrapGAppsHook4
60+
glib.dev
4561
];
4662

4763
buildInputs = [
@@ -55,22 +71,25 @@ stdenv.mkDerivation rec {
5571
json-glib
5672
gsound
5773
gmobile
74+
gnome-desktop
75+
libpulseaudio
76+
libportal
77+
libportal-gtk4
5878
];
5979

6080
postPatch = ''
61-
# There are no schemas to compile.
62-
substituteInPlace meson.build \
63-
--replace 'glib_compile_schemas: true' 'glib_compile_schemas: false'
81+
ln -s ${gvc} subprojects/gvc
6482
'';
6583

6684
postInstall = ''
6785
# this is optional, but without it phosh-mobile-settings won't know about lock screen plugins
6886
ln -s '${phosh}/lib/phosh' "$out/lib/phosh"
87+
glib-compile-schemas "$out/share/glib-2.0/schemas"
6988
'';
7089

7190
passthru = {
7291
tests.phosh = nixosTests.phosh;
73-
updateScript = directoryListingUpdater { };
92+
updateScript = nix-update-script { };
7493
};
7594

7695
meta = {
@@ -79,7 +98,10 @@ stdenv.mkDerivation rec {
7998
homepage = "https://gitlab.gnome.org/World/Phosh/phosh-mobile-settings";
8099
changelog = "https://gitlab.gnome.org/World/Phosh/phosh-mobile-settings/-/blob/v${version}/debian/changelog";
81100
license = lib.licenses.gpl3Plus;
82-
maintainers = with lib.maintainers; [ rvl ];
101+
maintainers = with lib.maintainers; [
102+
rvl
103+
armelclo
104+
];
83105
platforms = lib.platforms.linux;
84106
};
85107
}

pkgs/by-name/gm/gmobile/package.nix

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,21 @@
1111
libuev,
1212
gobject-introspection,
1313
udevCheckHook,
14+
vala,
15+
nix-update-script,
1416
}:
1517

1618
stdenv.mkDerivation (finalAttrs: {
17-
name = "gmobile";
18-
version = "0.2.1";
19+
pname = "gmobile";
20+
version = "0.4.0";
1921

2022
src = fetchFromGitLab {
2123
domain = "gitlab.gnome.org";
2224
group = "World";
2325
owner = "Phosh";
2426
repo = "gmobile";
25-
rev = "v${finalAttrs.version}";
26-
hash = "sha256-5OQ2JT7YeEYzKXafwgg0xJk2AvtFw2dtcH3mt+cm1bI=";
27+
tag = "v${finalAttrs.version}";
28+
hash = "sha256-5WRsHbwReLy3ZMbfsyjr3VsGawaQoXMFIDtKw3P/loA=";
2729
};
2830

2931
nativeBuildInputs = [
@@ -39,15 +41,21 @@ stdenv.mkDerivation (finalAttrs: {
3941
glib
4042
json-glib
4143
libuev
44+
vala
4245
];
4346

4447
doInstallCheck = true;
4548

49+
passthru.updateScript = nix-update-script { };
50+
4651
meta = {
4752
description = "Functions useful in mobile related, glib based projects";
4853
homepage = "https://gitlab.gnome.org/World/Phosh/gmobile";
4954
license = lib.licenses.lgpl21Plus;
50-
maintainers = with lib.maintainers; [ donovanglover ];
55+
maintainers = with lib.maintainers; [
56+
donovanglover
57+
armelclo
58+
];
5159
platforms = lib.platforms.linux;
5260
};
5361
})

pkgs/by-name/ph/phoc/package.nix

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,35 @@
1919
wayland,
2020
libdrm,
2121
libxkbcommon,
22-
wlroots_0_17,
22+
wlroots_0_19,
2323
xorg,
24-
directoryListingUpdater,
24+
nix-update-script,
2525
nixosTests,
2626
testers,
2727
gmobile,
2828
}:
2929

30+
let
31+
# Derived from subprojects/gvdb.wrap
32+
gvdb = fetchFromGitLab {
33+
domain = "gitlab.gnome.org";
34+
owner = "GNOME";
35+
repo = "gvdb";
36+
rev = "4758f6fb7f889e074e13df3f914328f3eecb1fd3";
37+
hash = "sha256-4mqoHPlrMPenoGPwDqbtv4/rJ/uq9Skcm82pRvOxNIk=";
38+
};
39+
in
3040
stdenv.mkDerivation (finalAttrs: {
3141
pname = "phoc";
32-
version = "0.44.1";
42+
version = "0.48.0";
3343

3444
src = fetchFromGitLab {
3545
domain = "gitlab.gnome.org";
3646
group = "World";
3747
owner = "Phosh";
3848
repo = "phoc";
3949
rev = "v${finalAttrs.version}";
40-
hash = "sha256-Whke7wTRp5NaRauiiQZLjs0pSD1uAyr0aAhlK5e1+Hw=";
50+
hash = "sha256-ve69Na6iZwsNM0y7AZ0p/CObUfE6uEbhOV4sb5NaCYg=";
4151
};
4252

4353
nativeBuildInputs = [
@@ -66,11 +76,15 @@ stdenv.mkDerivation (finalAttrs: {
6676
gmobile
6777
];
6878

79+
postPatch = ''
80+
ln -s ${gvdb} subprojects/gvdb
81+
'';
82+
6983
mesonFlags = [ "-Dembed-wlroots=disabled" ];
7084

7185
# Patch wlroots to remove a check which crashes Phosh.
7286
# This patch can be found within the phoc source tree.
73-
wlroots = wlroots_0_17.overrideAttrs (old: {
87+
wlroots = wlroots_0_19.overrideAttrs (old: {
7488
patches = (old.patches or [ ]) ++ [
7589
(stdenvNoCC.mkDerivation {
7690
name = "0001-Revert-layer-shell-error-on-0-dimension-without-anch.patch";
@@ -87,7 +101,7 @@ stdenv.mkDerivation (finalAttrs: {
87101
tests.version = testers.testVersion {
88102
package = finalAttrs.finalPackage;
89103
};
90-
updateScript = directoryListingUpdater { };
104+
updateScript = nix-update-script { };
91105
};
92106

93107
meta = with lib; {
@@ -98,6 +112,7 @@ stdenv.mkDerivation (finalAttrs: {
98112
maintainers = with maintainers; [
99113
masipcat
100114
zhaofengli
115+
armelclo
101116
];
102117
platforms = platforms.linux;
103118
};

0 commit comments

Comments
 (0)