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