keybase-gui: fix missing desktop file

The keybase-gui package doesn't currently include the `.desktop` file
and supporting icons. This change fixes that.
This commit is contained in:
Jon Banafato 2018-02-03 19:44:22 -05:00
parent 2a2c8eab26
commit 4bef2fbc4f

View file

@ -48,7 +48,8 @@ stdenv.mkDerivation rec {
tar xf data.tar.xz
'';
installPhase = ''
mkdir -p $out/{bin,share}
mkdir -p $out/bin
mv usr/share $out/share
mv opt/keybase $out/share/
cat > $out/bin/keybase-gui <<EOF
@ -78,6 +79,9 @@ stdenv.mkDerivation rec {
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
'';
postFixup = ''
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) --set-rpath "${libPath}:\$ORIGIN" "$out/share/keybase/Keybase"