Skip to content

Commit

Permalink
tabby-terminal: init at 1.0.207
Browse files Browse the repository at this point in the history
  • Loading branch information
ChocolateLoverRaj committed May 17, 2024
1 parent a7cdcbc commit ac249b8
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3582,6 +3582,12 @@
githubId = 1118859;
name = "Scott Worley";
};
ChocolateLoverRaj = {
github = "ChocolateLoverRaj";
githubId = 52586855;
matrix = "@chocolateloverraj:matrix.org";
name = "Rajas Paranjpe";
};
choochootrain = {
email = "[email protected]";
github = "choochootrain";
Expand Down
64 changes: 64 additions & 0 deletions pkgs/by-name/ta/tabby-terminal/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{ stdenv, fetchurl, pkgs, lib, alsa-lib }:

stdenv.mkDerivation rec {
pname = "tabby-terminal";
version = "1.0.207";
src = fetchurl {
url = "https://github.com/Eugeny/tabby/releases/download/v${version}/tabby-${version}-linux-x64.deb";
hash = "sha256-PTTkL3+mYb7KM8fDUmgCuAF2lU88fYOstGWp/O5WZas=";
};

nativeBuildInputs = with pkgs; [
dpkg
makeWrapper
];

buildInputs = with pkgs; [
glib
nss
nspr
atk
cups
dbus
libdrm
gtk3
pango
cairo
xorg.libX11
xorg.libXcomposite
xorg.libXdamage
xorg.libXext
xorg.libXfixes
xorg.libXrandr
libxkbcommon
mesa
expat
xorg.libxcb
alsa-lib
libGL
libsecret
musl
];

postInstall = ''
mkdir -p $out/{opt,bin}
cp -r opt $out
wrapProgram "$out/opt/Tabby/tabby" --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland --enable-features=WaylandWindowDecorations}} --no-sandbox" --set LD_LIBRARY_PATH=${lib.makeLibraryPath buildInputs}
cp -r usr/* $out
ln -s $out/opt/Tabby/tabby $out/bin/tabby
substituteInPlace $out/share/applications/tabby.desktop \
--replace "/opt" $out/opt
'';

meta = with lib; {
homepage = "https://tabby.sh";
description = "A terminal for a more modern age";
license = licenses.mit;
maintainers = with maintainers; [ ChocolateLoverRaj ];
mainProgram = "tabby";
platforms = platforms.linux;
downloadPage = "https://github.com/Eugeny/tabby/releases/latest";
};
}

0 comments on commit ac249b8

Please sign in to comment.