diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 0c5b8eb2e0b44..b48c244f167fd 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3582,6 +3582,12 @@ githubId = 1118859; name = "Scott Worley"; }; + ChocolateLoverRaj = { + github = "ChocolateLoverRaj"; + githubId = 52586855; + matrix = "@chocolateloverraj:matrix.org"; + name = "Rajas Paranjpe"; + }; choochootrain = { email = "hurshal@imap.cc"; github = "choochootrain"; diff --git a/pkgs/by-name/ta/tabby-terminal/package.nix b/pkgs/by-name/ta/tabby-terminal/package.nix new file mode 100644 index 0000000000000..47c7530601f2d --- /dev/null +++ b/pkgs/by-name/ta/tabby-terminal/package.nix @@ -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"; + }; +}