85 lines
1.7 KiB
Nix
85 lines
1.7 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
, nixosTests
|
|
, directoryListingUpdater
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, wayland-scanner
|
|
, wrapGAppsHook4
|
|
, desktop-file-utils
|
|
, feedbackd
|
|
, gtk4
|
|
, libadwaita
|
|
, lm_sensors
|
|
, phoc
|
|
, phosh
|
|
, wayland-protocols
|
|
, json-glib
|
|
, gsound
|
|
, gmobile
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "phosh-mobile-settings";
|
|
version = "0.41.0";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
group = "World";
|
|
owner = "Phosh";
|
|
repo = "phosh-mobile-settings";
|
|
rev = "v${version}";
|
|
hash = "sha256-t5qngjQcjPltUGbcZ+CF5FbZtZkV/cD3xUhuApQbKHo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
phosh
|
|
pkg-config
|
|
wayland-scanner
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
desktop-file-utils
|
|
feedbackd
|
|
gtk4
|
|
libadwaita
|
|
lm_sensors
|
|
phoc
|
|
wayland-protocols
|
|
json-glib
|
|
gsound
|
|
gmobile
|
|
];
|
|
|
|
postPatch = ''
|
|
# There are no schemas to compile.
|
|
substituteInPlace meson.build \
|
|
--replace 'glib_compile_schemas: true' 'glib_compile_schemas: false'
|
|
'';
|
|
|
|
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"
|
|
'';
|
|
|
|
passthru = {
|
|
tests.phosh = nixosTests.phosh;
|
|
updateScript = directoryListingUpdater { };
|
|
};
|
|
|
|
meta = with lib; {
|
|
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 = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ rvl ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|