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

90 lines
2.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, pam, pkgconfig, autoconf, automake, libtool, libxcb
, glib, libXdmcp, itstool, intltool, libxklavier, libgcrypt, audit, busybox
, polkit, accountsservice, gtk-doc, gnome3, gobject-introspection, vala, fetchpatch
, withQt4 ? false, qt4
2015-09-27 15:37:23 +00:00
, withQt5 ? false, qtbase
2015-03-10 00:32:49 +00:00
}:
with stdenv.lib;
stdenv.mkDerivation rec {
pname = "lightdm";
version = "1.28.0";
2018-08-30 22:22:43 +00:00
outputs = [ "out" "dev" ];
src = fetchFromGitHub {
owner = "CanonicalLtd";
repo = pname;
rev = version;
sha256 = "1mmqy1jdvgc0h0h9gli7n4vdv5p8m5019qjr5ni4h73iz6mjdj2b";
};
nativeBuildInputs = [
autoconf
automake
gnome3.yelp-tools
gnome3.yelp-xsl
gobject-introspection
gtk-doc
intltool
itstool
libtool
pkgconfig
vala
];
buildInputs = [
accountsservice
audit
glib
libXdmcp
libgcrypt
libxcb
libxklavier
pam
polkit
] ++ optional withQt4 qt4
++ optional withQt5 qtbase;
patches = [
# Adds option to disable writing dmrc files
(fetchpatch {
url = "https://src.fedoraproject.org/rpms/lightdm/raw/4cf0d2bed8d1c68970b0322ccd5dbbbb7a0b12bc/f/lightdm-1.25.1-disable_dmrc.patch";
sha256 = "06f7iabagrsiws2l75sx2jyljknr9js7ydn151p3qfi104d1541n";
})
];
preConfigure = "NOCONFIGURE=1 ./autogen.sh";
2015-03-10 00:32:49 +00:00
configureFlags = [
"--localstatedir=/var"
"--sysconfdir=/etc"
2015-09-18 06:24:48 +00:00
"--disable-tests"
"--disable-static"
"--disable-dmrc"
] ++ optional withQt4 "--enable-liblightdm-qt"
++ optional withQt5 "--enable-liblightdm-qt5";
2015-04-05 05:20:28 +00:00
installFlags = [
"sysconfdir=${placeholder ''out''}/etc"
2015-04-05 05:20:28 +00:00
"localstatedir=\${TMPDIR}"
];
prePatch = ''
substituteInPlace autogen.sh \
--replace "which" "${busybox}/bin/which"
substituteInPlace src/shared-data-manager.c \
--replace /bin/rm ${busybox}/bin/rm
'';
meta = {
homepage = https://github.com/CanonicalLtd/lightdm;
description = "A cross-desktop display manager";
2015-03-10 00:32:49 +00:00
platforms = platforms.linux;
license = licenses.gpl3;
maintainers = with maintainers; [ ocharles worldofpeace ];
};
}