Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
108 lines
2.1 KiB
Nix
108 lines
2.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
nixosTests,
|
|
nix-update-script,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
wayland-scanner,
|
|
wrapGAppsHook4,
|
|
desktop-file-utils,
|
|
feedbackd,
|
|
gtk4,
|
|
libadwaita,
|
|
lm_sensors,
|
|
phoc,
|
|
phosh,
|
|
wayland-protocols,
|
|
json-glib,
|
|
gsound,
|
|
gmobile,
|
|
gnome-desktop,
|
|
libpulseaudio,
|
|
libportal,
|
|
libportal-gtk4,
|
|
glib,
|
|
}:
|
|
|
|
let
|
|
# Derived from subprojects/gvc.wrap
|
|
gvc = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "GNOME";
|
|
repo = "libgnome-volume-control";
|
|
rev = "5f9768a2eac29c1ed56f1fbb449a77a3523683b6";
|
|
hash = "sha256-gdgTnxzH8BeYQAsvv++Yq/8wHi7ISk2LTBfU8hk12NM=";
|
|
};
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "phosh-mobile-settings";
|
|
version = "0.48.0";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
group = "World";
|
|
owner = "Phosh";
|
|
repo = "phosh-mobile-settings";
|
|
rev = "v${version}";
|
|
hash = "sha256-XnXwTjZnPlGNUmqizcIQdJ6SmrQ0dq9jNEhNsmDPzyM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
phosh
|
|
pkg-config
|
|
wayland-scanner
|
|
wrapGAppsHook4
|
|
glib.dev
|
|
];
|
|
|
|
buildInputs = [
|
|
desktop-file-utils
|
|
feedbackd
|
|
gtk4
|
|
libadwaita
|
|
lm_sensors
|
|
phoc
|
|
wayland-protocols
|
|
json-glib
|
|
gsound
|
|
gmobile
|
|
gnome-desktop
|
|
libpulseaudio
|
|
libportal
|
|
libportal-gtk4
|
|
];
|
|
|
|
postPatch = ''
|
|
ln -s ${gvc} subprojects/gvc
|
|
'';
|
|
|
|
postInstall = ''
|
|
# this is optional, but without it phosh-mobile-settings won't know about lock screen plugins
|
|
ln -s '${phosh}/lib/phosh' "$out/lib/phosh"
|
|
glib-compile-schemas "$out/share/glib-2.0/schemas"
|
|
'';
|
|
|
|
passthru = {
|
|
tests.phosh = nixosTests.phosh;
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
description = "Settings app for mobile specific things";
|
|
mainProgram = "phosh-mobile-settings";
|
|
homepage = "https://gitlab.gnome.org/World/Phosh/phosh-mobile-settings";
|
|
changelog = "https://gitlab.gnome.org/World/Phosh/phosh-mobile-settings/-/blob/v${version}/debian/changelog";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [
|
|
rvl
|
|
armelclo
|
|
];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|