slack: fixes

* Fixes missing stdlib rpath
* Removes unused share/lintian
* Fixes slack.desktop paths
This commit is contained in:
zimbatm 2016-04-13 11:17:02 +01:00
parent cb0b0190cb
commit 7081325518

View file

@ -23,6 +23,7 @@ let
libnotify libnotify
nspr nspr
nss nss
stdenv.cc.cc
systemd systemd
xorg.libX11 xorg.libX11
@ -57,7 +58,7 @@ in stdenv.mkDerivation {
mkdir -p $out mkdir -p $out
dpkg -x $src $out dpkg -x $src $out
cp -av $out/usr/* $out cp -av $out/usr/* $out
rm -rf $out/usr rm -rf $out/usr $out/share/lintian
# Otherwise it looks "suspicious" # Otherwise it looks "suspicious"
chmod -R g-w $out chmod -R g-w $out
@ -73,7 +74,8 @@ in stdenv.mkDerivation {
# Fix the desktop link # Fix the desktop link
substituteInPlace $out/share/applications/slack.desktop \ substituteInPlace $out/share/applications/slack.desktop \
--replace /usr/lib/slack/slack $out/lib/slack/slack --replace /usr/bin/ $out/bin/ \
--replace /usr/share/ $out/share/
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {