summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2017-12-09 16:22:22 +0000
committerGitHub <noreply@github.com>2017-12-09 16:22:22 +0000
commit578575b13d488fce956d4c212419d68e2ba016c7 (patch)
treed8b65a6ce9c2a36243eee8654dda3ecaee6ce627 /pkgs/applications
parent82235b388c5a94e5488771f7af13da6d8a50aa42 (diff)
parent43c48a3c12cfcabeee2486e7090fb4578a8b2cee (diff)
downloadnixlib-578575b13d488fce956d4c212419d68e2ba016c7.tar
nixlib-578575b13d488fce956d4c212419d68e2ba016c7.tar.gz
nixlib-578575b13d488fce956d4c212419d68e2ba016c7.tar.bz2
nixlib-578575b13d488fce956d4c212419d68e2ba016c7.tar.lz
nixlib-578575b13d488fce956d4c212419d68e2ba016c7.tar.xz
nixlib-578575b13d488fce956d4c212419d68e2ba016c7.tar.zst
nixlib-578575b13d488fce956d4c212419d68e2ba016c7.zip
Merge pull request #32384 from rycee/lightdm/fix-rm-userdir
lightdm: fix removal of unused user data directories
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/display-managers/lightdm/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/applications/display-managers/lightdm/default.nix b/pkgs/applications/display-managers/lightdm/default.nix
index e82d4c69def6..6765c5f9dfd0 100644
--- a/pkgs/applications/display-managers/lightdm/default.nix
+++ b/pkgs/applications/display-managers/lightdm/default.nix
@@ -1,5 +1,5 @@
 { stdenv, fetchurl, pam, pkgconfig, libxcb, glib, libXdmcp, itstool, libxml2
-, intltool, xlibsWrapper, libxklavier, libgcrypt, libaudit
+, intltool, xlibsWrapper, libxklavier, libgcrypt, libaudit, coreutils
 , qt4 ? null
 , withQt5 ? false, qtbase
 }:
@@ -36,6 +36,11 @@ stdenv.mkDerivation rec {
     "localstatedir=\${TMPDIR}"
   ];
 
+  prePatch = ''
+    substituteInPlace src/shared-data-manager.c \
+      --replace /bin/rm ${coreutils}/bin/rm
+  '';
+
   meta = {
     homepage = https://launchpad.net/lightdm;
     platforms = platforms.linux;