phoc: 0.27.0 -> 0.31.0
This commit is contained in:
parent
679b746dfd
commit
2a9271815f
3 changed files with 11 additions and 47 deletions
|
@ -1,14 +0,0 @@
|
||||||
diff --git a/types/wlr_output_layout.c b/types/wlr_output_layout.c
|
|
||||||
index eb672f06..f0f546da 100644
|
|
||||||
--- a/types/wlr_output_layout.c
|
|
||||||
+++ b/types/wlr_output_layout.c
|
|
||||||
@@ -242,6 +242,9 @@ bool wlr_output_layout_contains_point(struct wlr_output_layout *layout,
|
|
||||||
if (reference) {
|
|
||||||
struct wlr_output_layout_output *l_output =
|
|
||||||
wlr_output_layout_get(layout, reference);
|
|
||||||
+ if (!l_output) {
|
|
||||||
+ return false;
|
|
||||||
+ }
|
|
||||||
struct wlr_box *box = output_layout_output_get_box(l_output);
|
|
||||||
return wlr_box_contains_point(box, lx, ly);
|
|
||||||
} else {
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitLab
|
, fetchurl
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, meson
|
, meson
|
||||||
, ninja
|
, ninja
|
||||||
|
@ -16,6 +16,7 @@
|
||||||
, libdrm
|
, libdrm
|
||||||
, libxkbcommon
|
, libxkbcommon
|
||||||
, wlroots
|
, wlroots
|
||||||
|
, xorg
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -25,43 +26,19 @@ let
|
||||||
# https://source.puri.sm/Librem5/phosh/-/issues/422
|
# https://source.puri.sm/Librem5/phosh/-/issues/422
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
name = "0001-Revert-layer-shell-error-on-0-dimension-without-anch.patch";
|
name = "0001-Revert-layer-shell-error-on-0-dimension-without-anch.patch";
|
||||||
url = "https://source.puri.sm/Librem5/wlroots/-/commit/4f66b0931aaaee65367102e9c4ccb736097412c7.patch";
|
url = "https://gitlab.gnome.org/World/Phosh/phoc/-/raw/acb17171267ae0934f122af294d628ad68b09f88/subprojects/packagefiles/wlroots/0001-Revert-layer-shell-error-on-0-dimension-without-anch.patch";
|
||||||
hash = "sha256-2Vy5a4lWh8FP2PN6xRIZv6IlUuLZibT0MYW+EyvVULs=";
|
hash = "sha256-uNJaYwkZImkzNUEqyLCggbXAoIRX5h2eJaGbSHj1B+o=";
|
||||||
})
|
})
|
||||||
|
|
||||||
# xdg-activation: Deduplicate token creation code
|
|
||||||
(fetchpatch {
|
|
||||||
name = "xdg-activation-deduplicate-token-creation-code.patch";
|
|
||||||
url = "https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/dd03d839ab56c3e5d7c607a8d76e58e0b75edb85.patch";
|
|
||||||
sha256 = "sha256-mxt68MISC24xpaBtVSc1F2W4cyNs5wQowtbUQH9Eqr8=";
|
|
||||||
})
|
|
||||||
|
|
||||||
# seat: Allow to cancel touches
|
|
||||||
(fetchpatch {
|
|
||||||
name = "seat-Allow-to-cancel-touches.patch";
|
|
||||||
url = "https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/17b2b06633729f1826715c1d0b84614aa3cedb3a.patch";
|
|
||||||
sha256 = "sha256-BAeXa3ZB5TXnlq0ZP2+rZlVXEPWpLP4Wi4TLwoXjkz4=";
|
|
||||||
})
|
|
||||||
|
|
||||||
# From
|
|
||||||
# https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/13fcdba75cf5f21cfd49c1a05f4fa62f77619b40
|
|
||||||
# which has been merged upstream, but doesn't cleanly apply on to the
|
|
||||||
# latest released version.
|
|
||||||
./0001-handle-outputs-that-arent-in-the-layout.patch
|
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
pname = "phoc";
|
pname = "phoc";
|
||||||
version = "0.27.0";
|
version = "0.31.0";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchurl {
|
||||||
domain = "gitlab.gnome.org";
|
# This tarball includes the meson wrapped subproject 'gmobile'.
|
||||||
group = "World";
|
url = "https://storage.puri.sm/releases/phoc/phoc-${version}.tar.xz";
|
||||||
owner = "Phosh";
|
hash = "sha256-P7Bs9JMv6KNKo4d2ID0/Ba4+Nel6DMn8o4I7EDvY4vY=";
|
||||||
repo = pname;
|
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "sha256-4/Fxo72KXLy3gxXMS+PrTUbZl0EFt2GPMXg8+/fE7MY=";
|
|
||||||
fetchSubmodules = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -83,6 +60,7 @@ in stdenv.mkDerivation rec {
|
||||||
gnome.mutter
|
gnome.mutter
|
||||||
wayland
|
wayland
|
||||||
phocWlroots
|
phocWlroots
|
||||||
|
xorg.xcbutilwm
|
||||||
];
|
];
|
||||||
|
|
||||||
mesonFlags = ["-Dembed-wlroots=disabled"];
|
mesonFlags = ["-Dembed-wlroots=disabled"];
|
||||||
|
|
|
@ -11999,7 +11999,7 @@ with pkgs;
|
||||||
pfstools = libsForQt5.callPackage ../tools/graphics/pfstools { };
|
pfstools = libsForQt5.callPackage ../tools/graphics/pfstools { };
|
||||||
|
|
||||||
phoc = callPackage ../applications/misc/phoc {
|
phoc = callPackage ../applications/misc/phoc {
|
||||||
wlroots = wlroots_0_15;
|
wlroots = wlroots_0_16;
|
||||||
};
|
};
|
||||||
|
|
||||||
phockup = callPackage ../applications/misc/phockup { };
|
phockup = callPackage ../applications/misc/phockup { };
|
||||||
|
|
Loading…
Reference in a new issue