1 { stdenv, lib, fetchurl, alsa-lib, atk, cairo, cups, udev, libdrm, mesa
2 , dbus, expat, fontconfig, freetype, gdk-pixbuf, glib, gtk3, libappindicator-gtk3
3 , libnotify, nspr, nss, pango, systemd, xorg, autoPatchelfHook, wrapGAppsHook3
4 , runtimeShell, gsettings-desktop-schemas }:
7 versionSuffix = "20240821175720.3212f60cc5";
10 stdenv.mkDerivation rec {
11 pname = "keybase-gui";
12 version = "6.4.0"; # Find latest version and versionSuffix from https://prerelease.keybase.io/deb/dists/stable/main/binary-amd64/Packages
15 url = "https://s3.amazonaws.com/prerelease.keybase.io/linux_binaries/deb/keybase_${version + "-" + versionSuffix}_amd64.deb";
16 hash = "sha256-OGuckMUXDzfHIMhQagYJZObV4W6LufqTeIiCg+c5MjM=";
35 gsettings-desktop-schemas
59 runtimeDependencies = [
75 mv usr/share $out/share
76 mv opt/keybase $out/share/
78 cat > $out/bin/keybase-gui <<EOF
82 if [ "\$NIX_SKIP_KEYBASE_CHECKS" = "1" ]; then
85 echo "Set NIX_SKIP_KEYBASE_CHECKS=1 if you want to skip this check." >&2
89 if [ ! -S "\$XDG_RUNTIME_DIR/keybase/keybased.sock" ]; then
90 echo "Keybase service doesn't seem to be running." >&2
91 echo "You might need to run: keybase service" >&2
95 if [ -z "\$(keybase status | grep kbfsfuse)" ]; then
96 echo "Could not find kbfsfuse client in keybase status." >&2
97 echo "You might need to run: kbfsfuse" >&2
101 exec $out/share/keybase/Keybase \''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}} "\$@"
103 chmod +x $out/bin/keybase-gui
105 substituteInPlace $out/share/applications/keybase.desktop \
106 --replace run_keybase $out/bin/keybase-gui
110 homepage = "https://www.keybase.io/";
111 description = "Keybase official GUI";
112 mainProgram = "keybase-gui";
113 platforms = [ "x86_64-linux" ];
114 maintainers = with maintainers; [ avaq rvolosatovs puffnfresh np Br1ght0ne shofius ryand56 ];
115 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
116 license = licenses.bsd3;