waybar: support cross compilation
This commit is contained in:
parent
bbe8bb1c28
commit
9ff6c735f5
@ -40,10 +40,12 @@
|
|||||||
, udev
|
, udev
|
||||||
, upower
|
, upower
|
||||||
, wayland
|
, wayland
|
||||||
|
, wayland-scanner
|
||||||
, wireplumber
|
, wireplumber
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
|
|
||||||
, cavaSupport ? true
|
, cavaSupport ? true
|
||||||
|
, enableManpages ? stdenv.buildPlatform.canExecute stdenv.hostPlatform
|
||||||
, evdevSupport ? true
|
, evdevSupport ? true
|
||||||
, experimentalPatches ? true
|
, experimentalPatches ? true
|
||||||
, hyprlandSupport ? true
|
, hyprlandSupport ? true
|
||||||
@ -55,7 +57,7 @@
|
|||||||
, pipewireSupport ? true
|
, pipewireSupport ? true
|
||||||
, pulseSupport ? true
|
, pulseSupport ? true
|
||||||
, rfkillSupport ? true
|
, rfkillSupport ? true
|
||||||
, runTests ? true
|
, runTests ? stdenv.buildPlatform.canExecute stdenv.hostPlatform
|
||||||
, sndioSupport ? true
|
, sndioSupport ? true
|
||||||
, swaySupport ? true
|
, swaySupport ? true
|
||||||
, traySupport ? true
|
, traySupport ? true
|
||||||
@ -97,9 +99,10 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
meson
|
meson
|
||||||
ninja
|
ninja
|
||||||
pkg-config
|
pkg-config
|
||||||
scdoc
|
wayland-scanner
|
||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
] ++ lib.optional withMediaPlayer gobject-introspection;
|
] ++ lib.optional withMediaPlayer gobject-introspection
|
||||||
|
++ lib.optional enableManpages scdoc;
|
||||||
|
|
||||||
propagatedBuildInputs = lib.optionals withMediaPlayer [
|
propagatedBuildInputs = lib.optionals withMediaPlayer [
|
||||||
glib
|
glib
|
||||||
@ -107,8 +110,6 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
python3.pkgs.pygobject3
|
python3.pkgs.pygobject3
|
||||||
];
|
];
|
||||||
|
|
||||||
strictDeps = false;
|
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gtk-layer-shell
|
gtk-layer-shell
|
||||||
gtkmm3
|
gtkmm3
|
||||||
@ -154,7 +155,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
"libinput" = inputSupport;
|
"libinput" = inputSupport;
|
||||||
"libnl" = nlSupport;
|
"libnl" = nlSupport;
|
||||||
"libudev" = udevSupport;
|
"libudev" = udevSupport;
|
||||||
"man-pages" = true;
|
"man-pages" = enableManpages;
|
||||||
"mpd" = mpdSupport;
|
"mpd" = mpdSupport;
|
||||||
"mpris" = mprisSupport;
|
"mpris" = mprisSupport;
|
||||||
"pipewire" = pipewireSupport;
|
"pipewire" = pipewireSupport;
|
||||||
|
Loading…
Reference in New Issue
Block a user