parent
18aad27407
commit
cdfad5ad84
@ -2,7 +2,7 @@
|
|||||||
, meson, ninja
|
, meson, ninja
|
||||||
, pkgconfig, scdoc
|
, pkgconfig, scdoc
|
||||||
, wayland, libxkbcommon, pcre, json_c, dbus, libevdev
|
, wayland, libxkbcommon, pcre, json_c, dbus, libevdev
|
||||||
, pango, cairo, libinput, libcap, pam, gdk-pixbuf
|
, pango, cairo, libinput, libcap, pam, gdk-pixbuf, librsvg
|
||||||
, wlroots, wayland-protocols
|
, wlroots, wayland-protocols
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
wayland libxkbcommon pcre json_c dbus libevdev
|
wayland libxkbcommon pcre json_c dbus libevdev
|
||||||
pango cairo libinput libcap pam gdk-pixbuf
|
pango cairo libinput libcap pam gdk-pixbuf librsvg
|
||||||
wlroots wayland-protocols
|
wlroots wayland-protocols
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
, sway-unwrapped, swaybg
|
, sway-unwrapped, swaybg
|
||||||
, makeWrapper, symlinkJoin, writeShellScriptBin
|
, makeWrapper, symlinkJoin, writeShellScriptBin
|
||||||
, withBaseWrapper ? true, extraSessionCommands ? "", dbus
|
, withBaseWrapper ? true, extraSessionCommands ? "", dbus
|
||||||
, withGtkWrapper ? false, wrapGAppsHook, gdk-pixbuf
|
, withGtkWrapper ? false, wrapGAppsHook, gdk-pixbuf, glib, gtk3
|
||||||
, extraOptions ? [] # E.g.: [ "--verbose" ]
|
, extraOptions ? [] # E.g.: [ "--verbose" ]
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -33,12 +33,14 @@ in symlinkJoin {
|
|||||||
nativeBuildInputs = [ makeWrapper ]
|
nativeBuildInputs = [ makeWrapper ]
|
||||||
++ (optional withGtkWrapper wrapGAppsHook);
|
++ (optional withGtkWrapper wrapGAppsHook);
|
||||||
|
|
||||||
buildInputs = optional withGtkWrapper gdk-pixbuf;
|
buildInputs = optionals withGtkWrapper [ gdk-pixbuf glib gtk3 ];
|
||||||
|
|
||||||
|
# We want to run wrapProgram manually
|
||||||
|
dontWrapGApps = true;
|
||||||
|
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
# We want to run wrapProgram manually to only wrap sway and add swaybg:
|
${optionalString withGtkWrapper "gappsWrapperArgsHook"}
|
||||||
export dontWrapGApps=true
|
|
||||||
${optionalString withGtkWrapper "wrapGAppsHook"}
|
|
||||||
wrapProgram $out/bin/sway \
|
wrapProgram $out/bin/sway \
|
||||||
--prefix PATH : "${swaybg}/bin" \
|
--prefix PATH : "${swaybg}/bin" \
|
||||||
${optionalString withGtkWrapper ''"''${gappsWrapperArgs[@]}"''} \
|
${optionalString withGtkWrapper ''"''${gappsWrapperArgs[@]}"''} \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user