gtk-layer-shell: fix cross compilation

This commit is contained in:
Nick Cao 2023-01-19 09:57:23 +08:00
parent 5c5998da47
commit aa92e6114b
No known key found for this signature in database

View file

@ -1,11 +1,14 @@
{ lib, stdenv
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, meson
, ninja
, pkg-config
, gtk-doc
, docbook-xsl-nons
, docbook_xml_dtd_43
, wayland-scanner
, wayland
, gtk3
, gobject-introspection
@ -26,6 +29,27 @@ stdenv.mkDerivation rec {
sha256 = "sha256-Z7jPYLKgkwMNXu80aaZ2vNj57LbN+X2XqlTTq6l0wTE=";
};
patches = [
# https://github.com/wmww/gtk-layer-shell/pull/146
# Mark wayland-scanner as a build-time dependency
(fetchpatch {
url = "https://github.com/wmww/gtk-layer-shell/commit/6fd16352e5b35fefc91aa44e73671addaaa95dfc.patch";
hash = "sha256-U/mxmcRcZnsF0fvWW0axo6ajqW40NuOzNIAzoLCboRM=";
})
# https://github.com/wmww/gtk-layer-shell/pull/147
# Remove redundant dependency check for gtk-doc
(fetchpatch {
url = "https://github.com/wmww/gtk-layer-shell/commit/124ccc2772d5ecbb40b54872c22e594c74bd39bc.patch";
hash = "sha256-WfrWe9UJCp1RvVJhURAxGw4jzqPjoaP6182jVdoEAQs=";
})
];
strictDeps = true;
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [
meson
ninja
@ -35,6 +59,7 @@ stdenv.mkDerivation rec {
docbook-xsl-nons
docbook_xml_dtd_43
vala
wayland-scanner
];
buildInputs = [