11 , gobject-introspection
21 , directoryListingUpdater
26 stdenv.mkDerivation (finalAttrs: {
31 # This tarball includes the meson wrapped subproject 'gmobile'.
32 url = with finalAttrs; "https://sources.phosh.mobi/releases/${pname}/${pname}-${version}.tar.xz";
33 hash = "sha256-OcRUnw1Fck9bMSgfMMcWqqR6a6yzyKjY8P3nqcwVULc=";
52 # For keybindings settings schemas
59 mesonFlags = ["-Dembed-wlroots=disabled"];
61 # Patch wlroots to remove a check which crashes Phosh.
62 # This patch can be found within the phoc source tree.
63 wlroots = wlroots.overrideAttrs (old: {
64 patches = (old.patches or []) ++ [
65 (stdenvNoCC.mkDerivation {
66 name = "0001-Revert-layer-shell-error-on-0-dimension-without-anch.patch";
67 inherit (finalAttrs) src;
68 preferLocalBuild = true;
69 allowSubstitutes = false;
70 installPhase = "cp subprojects/packagefiles/wlroots/$name $out";
76 tests.phosh = nixosTests.phosh;
77 tests.version = testers.testVersion {
78 package = finalAttrs.finalPackage;
80 updateScript = directoryListingUpdater { };
84 description = "Wayland compositor for mobile phones like the Librem 5";
86 homepage = "https://gitlab.gnome.org/World/Phosh/phoc";
87 license = licenses.gpl3Plus;
88 maintainers = with maintainers; [ masipcat tomfitzhenry zhaofengli ];
89 platforms = platforms.linux;