diff options
author | Emily Trau <13267947+emilytrau@users.noreply.github.com> | 2024-04-23 22:01:45 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-23 22:01:45 +1000 |
commit | 65f3d712db1cb7227759c606c72f59c519c22413 (patch) | |
tree | d5fe41500fa2df7942b41f12e2a3f5eebd3c0203 /pkgs | |
parent | 52053cb75689ac56fa5365b8bb7d69617133e601 (diff) | |
parent | 7dc39246a0076ce09ea8ccca7468f3200004f03b (diff) |
Merge pull request #301944 from imadnyc/warp-terminal-initial-linux
warp-terminal: enabled wayland support
Diffstat (limited to 'pkgs')
-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 972afafda5676..fc31cb34d24ec 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-fail /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 ''; }); |