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

45 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pam, pkgconfig, libxcb, glib, libXdmcp, itstool, libxml2
, intltool, xlibsWrapper, libxklavier, libgcrypt, libaudit
2015-09-27 17:37:23 +02:00
, qt4 ? null
, withQt5 ? false, qtbase
2015-03-10 01:32:49 +01:00
}:
let
2015-09-18 08:24:48 +02:00
ver_branch = "1.16";
2015-11-14 11:27:45 +01:00
version = "1.16.5";
in
stdenv.mkDerivation rec {
name = "lightdm-${version}";
src = fetchurl {
url = "${meta.homepage}/${ver_branch}/${version}/+download/${name}.tar.xz";
2015-11-14 11:27:45 +01:00
sha256 = "1qb3gvwdm2rymwn8rb1qc4gyam226xmvy2fq5rvmrcmgxblmi34c";
};
patches = [ ./fix-paths.patch ];
buildInputs = [
pkgconfig pam libxcb glib libXdmcp itstool libxml2 intltool libxklavier libgcrypt
2015-09-18 08:24:48 +02:00
qt4 libaudit
2015-09-27 17:37:23 +02:00
] ++ stdenv.lib.optional withQt5 qtbase;
2015-03-10 01:32:49 +01:00
configureFlags = [
"--localstatedir=/var"
"--sysconfdir=/etc"
2015-09-18 08:24:48 +02:00
"--disable-tests"
2015-03-10 01:32:49 +01:00
] ++ stdenv.lib.optional (qt4 != null) "--enable-liblightdm-qt"
2015-09-27 17:37:23 +02:00
++ stdenv.lib.optional withQt5 "--enable-liblightdm-qt5";
2015-04-05 07:20:28 +02:00
installFlags = [
"sysconfdir=\${out}/etc"
"localstatedir=\${TMPDIR}"
];
2015-03-10 01:32:49 +01:00
meta = with stdenv.lib; {
2015-05-29 01:23:46 +02:00
homepage = https://launchpad.net/lightdm;
2015-03-10 01:32:49 +01:00
platforms = platforms.linux;
license = licenses.gpl3;
maintainers = with maintainers; [ ocharles wkennington ];
};
}