nixpkgs/pkgs/applications/display-managers/lightdm/default.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pam, pkgconfig, libxcb, glib, libXdmcp, itstool, libxml2
2015-09-17 23:24:48 -07:00
, intltool, x11, libxklavier, libgcrypt, libaudit
2015-03-09 17:32:49 -07:00
, qt4 ? null, qt5 ? null
}:
let
2015-09-17 23:24:48 -07:00
ver_branch = "1.16";
version = "1.16.2";
in
stdenv.mkDerivation rec {
name = "lightdm-${version}";
src = fetchurl {
url = "${meta.homepage}/${ver_branch}/${version}/+download/${name}.tar.xz";
2015-09-17 23:24:48 -07:00
sha256 = "062jj21bjrl29mk66lpihwhrff038h2wny3p6b5asacf2mklf0hq";
};
patches = [ ./fix-paths.patch ];
buildInputs = [
pkgconfig pam libxcb glib libXdmcp itstool libxml2 intltool libxklavier libgcrypt
2015-09-17 23:24:48 -07:00
qt4 libaudit
2015-05-10 04:44:50 -07:00
] ++ stdenv.lib.optional (qt5 != null) qt5.base;
2015-03-09 17:32:49 -07:00
configureFlags = [
"--localstatedir=/var"
"--sysconfdir=/etc"
2015-09-17 23:24:48 -07:00
"--disable-tests"
2015-03-09 17:32:49 -07:00
] ++ stdenv.lib.optional (qt4 != null) "--enable-liblightdm-qt"
2015-05-10 04:44:50 -07:00
++ stdenv.lib.optional ((qt5.base or null) != null) "--enable-liblightdm-qt5";
2015-04-04 22:20:28 -07:00
installFlags = [
"sysconfdir=\${out}/etc"
"localstatedir=\${TMPDIR}"
];
2015-03-09 17:32:49 -07:00
meta = with stdenv.lib; {
2015-05-28 16:23:46 -07:00
homepage = https://launchpad.net/lightdm;
2015-03-09 17:32:49 -07:00
platforms = platforms.linux;
license = licenses.gpl3;
maintainers = with maintainers; [ ocharles wkennington ];
};
}