lightdm-gtk-greeter: Remove install hack

This commit is contained in:
William A. Kennington III 2015-04-04 22:22:08 -07:00
parent 70efcd0389
commit 904f24577b

View File

@ -26,20 +26,17 @@ stdenv.mkDerivation rec {
"--sysconfdir=/etc" "--sysconfdir=/etc"
] ++ stdenv.lib.optional useGTK2 "--with-gtk2"; ] ++ stdenv.lib.optional useGTK2 "--with-gtk2";
installFlags = [ "DESTDIR=\${out}" ]; installFlags = [
"localstatedir=\${TMPDIR}"
"sysconfdir=\${out}/etc"
];
postInstall = '' postInstall = ''
mv $out/$out/* $out substituteInPlace "$out/share/xgreeters/lightdm-gtk-greeter.desktop" \
DIR=$out/$out --replace "Exec=lightdm-gtk-greeter" "Exec=$out/sbin/lightdm-gtk-greeter"
while rmdir $DIR 2>/dev/null; do wrapProgram "$out/sbin/lightdm-gtk-greeter" \
DIR="$(dirname "$DIR")" --prefix XDG_DATA_DIRS ":" "${hicolor_icon_theme}/share"
done '';
substituteInPlace "$out/share/xgreeters/lightdm-gtk-greeter.desktop" \
--replace "Exec=lightdm-gtk-greeter" "Exec=$out/sbin/lightdm-gtk-greeter"
wrapProgram "$out/sbin/lightdm-gtk-greeter" \
--prefix XDG_DATA_DIRS ":" "${hicolor_icon_theme}/share"
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://launchpad.net/lightdm-gtk-greeter; homepage = http://launchpad.net/lightdm-gtk-greeter;