Merge pull request #109647 from deviant/remove-swaybg-from-path
sway: remove swaybg from path
This commit is contained in:
commit
fdc1e37440
3 changed files with 18 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchFromGitHub, makeWrapper
|
||||
{ lib, stdenv, fetchFromGitHub, substituteAll, swaybg
|
||||
, meson, ninja, pkg-config, wayland, scdoc
|
||||
, libxkbcommon, pcre, json_c, dbus, libevdev
|
||||
, pango, cairo, libinput, libcap, pam, gdk-pixbuf, librsvg
|
||||
|
@ -19,6 +19,11 @@ stdenv.mkDerivation rec {
|
|||
patches = [
|
||||
./sway-config-no-nix-store-references.patch
|
||||
./load-configuration-from-etc.patch
|
||||
|
||||
(substituteAll {
|
||||
src = ./fix-paths.patch;
|
||||
inherit swaybg;
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
11
pkgs/applications/window-managers/sway/fix-paths.patch
Normal file
11
pkgs/applications/window-managers/sway/fix-paths.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- a/sway/config.c
|
||||
+++ b/sway/config.c
|
||||
@@ -276,7 +276,7 @@
|
||||
|
||||
if (!(config->active_bar_modifiers = create_list())) goto cleanup;
|
||||
|
||||
- if (!(config->swaybg_command = strdup("swaybg"))) goto cleanup;
|
||||
+ if (!(config->swaybg_command = strdup("@swaybg@/bin/swaybg"))) goto cleanup;
|
||||
|
||||
if (!(config->config_chain = create_list())) goto cleanup;
|
||||
config->current_config_path = NULL;
|
|
@ -1,5 +1,5 @@
|
|||
{ lib, stdenv
|
||||
, sway-unwrapped, swaybg
|
||||
, sway-unwrapped
|
||||
, makeWrapper, symlinkJoin, writeShellScriptBin
|
||||
, withBaseWrapper ? true, extraSessionCommands ? "", dbus
|
||||
, withGtkWrapper ? false, wrapGAppsHook, gdk-pixbuf, glib, gtk3
|
||||
|
@ -42,7 +42,6 @@ in symlinkJoin {
|
|||
${optionalString withGtkWrapper "gappsWrapperArgsHook"}
|
||||
|
||||
wrapProgram $out/bin/sway \
|
||||
--prefix PATH : "${swaybg}/bin" \
|
||||
${optionalString withGtkWrapper ''"''${gappsWrapperArgs[@]}"''} \
|
||||
${optionalString (extraOptions != []) "${concatMapStrings (x: " --add-flags " + x) extraOptions}"}
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue