wayland{.bin,-scanner}: Add a pkg-config file for cross-compilation
Only "wayland_scanner" and "Version" are required so it's easier to create wayland-scanner.pc manually than to copy it from $dev and avoid dependency cycles.
This commit is contained in:
parent
d91321927f
commit
b062135493
@ -5,7 +5,7 @@
|
|||||||
, meson
|
, meson
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, ninja
|
, ninja
|
||||||
, wayland
|
, wayland-scanner
|
||||||
, expat
|
, expat
|
||||||
, libxml2
|
, libxml2
|
||||||
, withLibraries ? stdenv.isLinux
|
, withLibraries ? stdenv.isLinux
|
||||||
@ -64,7 +64,7 @@ stdenv.mkDerivation rec {
|
|||||||
pkg-config
|
pkg-config
|
||||||
ninja
|
ninja
|
||||||
] ++ lib.optionals isCross [
|
] ++ lib.optionals isCross [
|
||||||
wayland # For wayland-scanner during the build
|
wayland-scanner
|
||||||
] ++ lib.optionals withDocumentation [
|
] ++ lib.optionals withDocumentation [
|
||||||
(graphviz-nox.override { pango = null; }) # To avoid an infinite recursion
|
(graphviz-nox.override { pango = null; }) # To avoid an infinite recursion
|
||||||
doxygen
|
doxygen
|
||||||
@ -85,6 +85,18 @@ stdenv.mkDerivation rec {
|
|||||||
docbook_xml_dtd_42
|
docbook_xml_dtd_42
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
# The pkg-config file is required for cross-compilation:
|
||||||
|
mkdir -p $bin/lib/pkgconfig/
|
||||||
|
cat <<EOF > $bin/lib/pkgconfig/wayland-scanner.pc
|
||||||
|
wayland_scanner=$bin/bin/wayland-scanner
|
||||||
|
|
||||||
|
Name: Wayland Scanner
|
||||||
|
Description: Wayland scanner
|
||||||
|
Version: ${version}
|
||||||
|
EOF
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Core Wayland window system code and protocol";
|
description = "Core Wayland window system code and protocol";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user