[NixOS] Fix keybase gui
This commit is contained in:
parent
f227b82d38
commit
191b68bf69
@ -52,6 +52,37 @@ let
|
|||||||
makeWrapper libtool gnome3.gnome-common
|
makeWrapper libtool gnome3.gnome-common
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
keybase-gui-fixed = with pkgs; keybase-gui.overrideAttrs (oldAttrs: rec {
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
mv usr/share $out/share
|
||||||
|
mv opt/keybase $out/share/
|
||||||
|
cat > $out/bin/keybase-gui <<EOF
|
||||||
|
#!${stdenv.shell}
|
||||||
|
checkFailed() {
|
||||||
|
if [ "\$NIX_SKIP_KEYBASE_CHECKS" = "1" ]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
echo "Set NIX_SKIP_KEYBASE_CHECKS=1 if you want to skip this check." >&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
if [ ! -S "\$XDG_RUNTIME_DIR/keybase/keybased.sock" ]; then
|
||||||
|
echo "Keybase service doesn't seem to be running." >&2
|
||||||
|
echo "You might need to run: keybase service" >&2
|
||||||
|
checkFailed
|
||||||
|
fi
|
||||||
|
if [ -z "\$(keybase status | grep kbfsfuse)" ]; then
|
||||||
|
echo "Could not find kbfsfuse client in keybase status." >&2
|
||||||
|
echo "You might need to run: kbfsfuse" >&2
|
||||||
|
checkFailed
|
||||||
|
fi
|
||||||
|
exec $out/share/keybase/Keybase "\$@"
|
||||||
|
EOF
|
||||||
|
chmod +x $out/bin/keybase-gui
|
||||||
|
substituteInPlace $out/share/applications/keybase.desktop \
|
||||||
|
--replace run_keybase $out/bin/keybase-gui
|
||||||
|
'';
|
||||||
|
});
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
@ -105,7 +136,7 @@ in
|
|||||||
kleopatra
|
kleopatra
|
||||||
google-chrome
|
google-chrome
|
||||||
hexchat
|
hexchat
|
||||||
keybase-gui
|
keybase-gui-fixed
|
||||||
kodi
|
kodi
|
||||||
lxappearance
|
lxappearance
|
||||||
rxvt_unicode
|
rxvt_unicode
|
||||||
|
Loading…
Reference in New Issue
Block a user