43c48a3c12
This fixes errors such as Could not delete unused user data directory /var/lib/lightdm-data/.cache: Failed to execute child process “/bin/rm” (No such file or directory) Could not delete unused user data directory /var/lib/lightdm-data/.Xauthority: Failed to execute child process “/bin/rm” (No such file or directory) Could not delete unused user data directory /var/lib/lightdm-data/lightdm: Failed to execute child process “/bin/rm” (No such file or directory)
51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{ stdenv, fetchurl, pam, pkgconfig, libxcb, glib, libXdmcp, itstool, libxml2
|
|
, intltool, xlibsWrapper, libxklavier, libgcrypt, libaudit, coreutils
|
|
, qt4 ? null
|
|
, withQt5 ? false, qtbase
|
|
}:
|
|
|
|
with stdenv.lib;
|
|
|
|
let
|
|
ver_branch = "1.24";
|
|
version = "1.24.0";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "lightdm-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "${meta.homepage}/${ver_branch}/${version}/+download/${name}.tar.xz";
|
|
sha256 = "18j33bm54i8k7ncxcs69zqi4105s62n58jrydqn3ikrb71s9nl6d";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig intltool ];
|
|
buildInputs = [
|
|
pam libxcb glib libXdmcp itstool libxml2 libxklavier libgcrypt
|
|
qt4 libaudit
|
|
] ++ optional withQt5 qtbase;
|
|
|
|
configureFlags = [
|
|
"--localstatedir=/var"
|
|
"--sysconfdir=/etc"
|
|
"--disable-tests"
|
|
] ++ optional (qt4 != null) "--enable-liblightdm-qt"
|
|
++ optional withQt5 "--enable-liblightdm-qt5";
|
|
|
|
installFlags = [
|
|
"sysconfdir=\${out}/etc"
|
|
"localstatedir=\${TMPDIR}"
|
|
];
|
|
|
|
prePatch = ''
|
|
substituteInPlace src/shared-data-manager.c \
|
|
--replace /bin/rm ${coreutils}/bin/rm
|
|
'';
|
|
|
|
meta = {
|
|
homepage = https://launchpad.net/lightdm;
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ ocharles wkennington ];
|
|
};
|
|
}
|