2022-09-30 23:27:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
2023-01-21 03:00:03 +00:00
|
|
|
, gitUpdater
|
2022-09-30 23:27:41 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, wrapGAppsHook
|
|
|
|
, desktop-file-utils
|
|
|
|
, feedbackd
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
|
|
|
, lm_sensors
|
|
|
|
, phoc
|
|
|
|
, phosh
|
|
|
|
, wayland-protocols
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "phosh-mobile-settings";
|
2023-01-21 03:00:03 +00:00
|
|
|
version = "0.23.1";
|
2022-09-30 23:27:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "guidog";
|
|
|
|
repo = "phosh-mobile-settings";
|
|
|
|
rev = "v${version}";
|
2023-01-21 03:00:03 +00:00
|
|
|
sha256 = "sha256-D605efn25Dl3Bj92DZiagcx+MMcRz0GRaWxplBRcZhA=";
|
2022-09-30 23:27:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2023-01-21 03:00:03 +00:00
|
|
|
phosh
|
2022-09-30 23:27:41 +00:00
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
feedbackd
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
lm_sensors
|
|
|
|
phoc
|
|
|
|
wayland-protocols
|
|
|
|
];
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
|
|
|
# .desktop files marked `OnlyShowIn=Phosh;` aren't displayed even in our phosh, so remove that.
|
|
|
|
# also make the Exec path absolute.
|
|
|
|
substituteInPlace "$out/share/applications/org.sigxcpu.MobileSettings.desktop" \
|
|
|
|
--replace 'OnlyShowIn=Phosh;' "" \
|
|
|
|
--replace 'Exec=phosh-mobile-settings' "Exec=$out/bin/phosh-mobile-settings"
|
|
|
|
'';
|
|
|
|
|
2023-01-21 03:00:03 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
rev-prefix = "v";
|
|
|
|
};
|
|
|
|
|
2022-09-30 23:27:41 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A settings app for mobile specific things";
|
|
|
|
homepage = "https://gitlab.gnome.org/guidog/phosh-mobile-settings";
|
2023-01-21 03:00:03 +00:00
|
|
|
changelog = "https://gitlab.gnome.org/guidog/phosh-mobile-settings/-/blob/v${version}/debian/changelog";
|
2022-09-30 23:27:41 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ colinsane ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|