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

45 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pam, pkgconfig, libxcb, glib, libXdmcp, itstool, libxml2
2017-03-11 05:52:42 -08:00
, intltool, xlibsWrapper, libxklavier, libgcrypt, libaudit, gcc6
2015-09-27 08:37:23 -07:00
, qt4 ? null
, withQt5 ? false, qtbase
2015-03-09 17:32:49 -07:00
}:
let
ver_branch = "1.19";
2016-10-14 18:28:18 -07:00
version = "1.19.5";
in
stdenv.mkDerivation rec {
name = "lightdm-${version}";
src = fetchurl {
url = "${meta.homepage}/${ver_branch}/${version}/+download/${name}.tar.xz";
2016-10-14 18:28:18 -07:00
sha256 = "0gbz8jk1ljh8rwgvldkiqma1k61sd27yh008228ahdqd5i2v1r1z";
};
patches = [ ./fix-paths.patch ];
buildInputs = [
pkgconfig pam libxcb glib libXdmcp itstool libxml2 intltool libxklavier libgcrypt
2017-03-11 05:52:42 -08:00
qt4 libaudit gcc6
2015-09-27 08:37:23 -07:00
] ++ stdenv.lib.optional withQt5 qtbase;
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-09-27 08:37:23 -07:00
++ stdenv.lib.optional withQt5 "--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 ];
};
}