12 , gobject-introspection
23 , directoryListingUpdater
29 stdenv.mkDerivation (finalAttrs: {
33 src = fetchFromGitLab {
34 domain = "gitlab.gnome.org";
38 rev = "v${finalAttrs.version}";
39 hash = "sha256-T2gKvP3WyrGNOiCwiX93UjMuSTnnZ+nykEAFhq0BF4U=";
59 # For keybindings settings schemas
68 mesonFlags = ["-Dembed-wlroots=disabled"];
70 # Patch wlroots to remove a check which crashes Phosh.
71 # This patch can be found within the phoc source tree.
72 wlroots = wlroots.overrideAttrs (old: {
73 patches = (old.patches or []) ++ [
74 (stdenvNoCC.mkDerivation {
75 name = "0001-Revert-layer-shell-error-on-0-dimension-without-anch.patch";
76 inherit (finalAttrs) src;
77 preferLocalBuild = true;
78 allowSubstitutes = false;
79 installPhase = "cp subprojects/packagefiles/wlroots/$name $out";
85 tests.phosh = nixosTests.phosh;
86 tests.version = testers.testVersion {
87 package = finalAttrs.finalPackage;
89 updateScript = directoryListingUpdater { };
93 description = "Wayland compositor for mobile phones like the Librem 5";
95 homepage = "https://gitlab.gnome.org/World/Phosh/phoc";
96 license = licenses.gpl3Plus;
97 maintainers = with maintainers; [ masipcat zhaofengli ];
98 platforms = platforms.linux;