commit 35ce0c23d3066a499892511364243ff70d53b8ab
parent 0028eec4678b009f062afc4e0099de4ea8218bc2
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 12 Jan 2022 17:48:07 +0100
parent 0028eec4678b009f062afc4e0099de4ea8218bc2
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 12 Jan 2022 17:48:07 +0100
programs/sway: add wayland compatibility layer for xsel/xclip
1 file changed, 19 insertions(+), 0 deletions(-)
diff --git a/configurations/programs/sway.nix b/configurations/programs/sway.nix @@ -17,6 +17,25 @@ ]; }); + wl-clipboard-x11 = super.stdenv.mkDerivation rec { + pname = "wl-clipboard-x11"; + version = "5"; + + src = super.fetchFromGitHub { + owner = "brunelli"; + repo = "wl-clipboard-x11"; + rev = "v${version}"; + sha256 = "1y7jv7rps0sdzmm859wn2l8q4pg2x35smcrm7mbfxn5vrga0bslb"; + }; + + dontBuild = true; + dontConfigure = true; + propagatedBuildInputs = [ super.wl-clipboard ]; + makeFlags = [ "PREFIX=$(out)" ]; + }; + + xsel = self.wl-clipboard-x11; + xclip = self.wl-clipboard-x11; })]; home-manager.users.leah = {