diff options
author | imad.nyc <me@imad.nyc> | 2024-04-05 19:08:43 -0400 |
---|---|---|
committer | John Titor <50095635+JohnRTitor@users.noreply.github.com> | 2024-05-12 21:40:08 +0530 |
commit | 1640f789828735ce0ae79f872d8cf1bee9f36f22 (patch) | |
tree | 8499a2a82ae1665a709971b50e7c5e6361a6e542 /pkgs/by-name | |
parent | 7c335fa5fc994844f23b61d1f343dd9cabb5149a (diff) |
warp-terminal: enabled wayland support
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/wa/warp-terminal/package.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/by-name/wa/warp-terminal/package.nix b/pkgs/by-name/wa/warp-terminal/package.nix index b91938ed8e96c..41533fc7ec10d 100644 --- a/pkgs/by-name/wa/warp-terminal/package.nix +++ b/pkgs/by-name/wa/warp-terminal/package.nix @@ -10,9 +10,12 @@ , libglvnd , libxkbcommon , vulkan-loader +, wayland , xdg-utils , xorg , zlib +, makeWrapper +, waylandSupport ? false }: let @@ -35,7 +38,7 @@ linux = stdenv.mkDerivation (finalAttrs: { --replace /opt/ $out/opt/ ''; - nativeBuildInputs = [ autoPatchelfHook zstd ]; + nativeBuildInputs = [ autoPatchelfHook zstd makeWrapper ]; buildInputs = [ curl @@ -54,7 +57,7 @@ linux = stdenv.mkDerivation (finalAttrs: { xorg.libxcb xorg.libXcursor xorg.libXi - ]; + ] ++ lib.optionals waylandSupport [wayland]; installPhase = '' runHook preInstall @@ -62,6 +65,9 @@ linux = stdenv.mkDerivation (finalAttrs: { mkdir $out cp -r opt usr/* $out + '' ++ lib.optionalString waylandSupport '' + wrapProgram $out/bin/warp-terminal --set WARP_ENABLE_WAYLAND 1 + '' ++ '' runHook postInstall ''; }); |