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:
parent
2a2c8eab26
commit
4bef2fbc4f
1 changed files with 5 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue