Merge pull request #34575 from jonafato/keybase-gui-icon

keybase-gui: fix missing desktop file
This commit is contained in:
Joachim F 2018-02-06 14:44:50 +00:00 committed by GitHub
commit 8d466f7ae9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"