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, wrapGAppsHook
4 , runtimeShell, gsettings-desktop-schemas }:
7 versionSuffix = "20220610191041.a459abf326";
10 stdenv.mkDerivation rec {
11 pname = "keybase-gui";
12 version = "6.0.2"; # Find latest version 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-FMhbMSuJHq5d5E0dTVAk02y85UXmhtKZYk4qcbnhRxI=";
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 "\$@"
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 = "The Keybase official GUI";
112 platforms = [ "x86_64-linux" ];
113 maintainers = with maintainers; [ avaq rvolosatovs puffnfresh np Br1ght0ne shofius ];
114 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
115 license = licenses.bsd3;