mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 13:48:21 +03:00
phosh-mobile-settings: init at 0.21.1
This commit is contained in:
parent
0d9eed3128
commit
ae466ee0ac
@ -0,0 +1,66 @@
|
|||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitLab
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, pkg-config
|
||||||
|
, wrapGAppsHook
|
||||||
|
, desktop-file-utils
|
||||||
|
, feedbackd
|
||||||
|
, gtk4
|
||||||
|
, libadwaita
|
||||||
|
, lm_sensors
|
||||||
|
, phoc
|
||||||
|
, phosh
|
||||||
|
, wayland-protocols
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "phosh-mobile-settings";
|
||||||
|
version = "0.21.1";
|
||||||
|
|
||||||
|
src = fetchFromGitLab {
|
||||||
|
domain = "gitlab.gnome.org";
|
||||||
|
owner = "guidog";
|
||||||
|
repo = "phosh-mobile-settings";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-60AXaKSF8bY+Z3TNlIIa7jZwQ2IkHqCbZ3uIlhkx6i0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
meson
|
||||||
|
ninja
|
||||||
|
pkg-config
|
||||||
|
wrapGAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
desktop-file-utils
|
||||||
|
feedbackd
|
||||||
|
gtk4
|
||||||
|
libadwaita
|
||||||
|
lm_sensors
|
||||||
|
phoc
|
||||||
|
phosh
|
||||||
|
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"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A settings app for mobile specific things";
|
||||||
|
homepage = "https://gitlab.gnome.org/guidog/phosh-mobile-settings";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
maintainers = with maintainers; [ colinsane ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
@ -10399,6 +10399,8 @@ with pkgs;
|
|||||||
|
|
||||||
phosh = callPackage ../applications/window-managers/phosh { };
|
phosh = callPackage ../applications/window-managers/phosh { };
|
||||||
|
|
||||||
|
phosh-mobile-settings = callPackage ../applications/window-managers/phosh/phosh-mobile-settings.nix { };
|
||||||
|
|
||||||
pinentry = libsForQt5.callPackage ../tools/security/pinentry { };
|
pinentry = libsForQt5.callPackage ../tools/security/pinentry { };
|
||||||
|
|
||||||
pinentry-curses = (lib.getOutput "curses" pinentry);
|
pinentry-curses = (lib.getOutput "curses" pinentry);
|
||||||
|
Loading…
Reference in New Issue
Block a user