summary refs log tree commit diff
path: root/pkgs/applications/display-managers/lightdm/default.nix
blob: 598c42199bec9511c88c74ce319f5f0f5ed23091 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv, fetchurl, pam, pkgconfig, libxcb, glib, libXdmcp, itstool, libxml2
, intltool, x11, libxklavier, libgcrypt, dbus/*for tests*/ }:

let
  ver_branch = "1.8";
  version = "1.7.0";
in
stdenv.mkDerivation rec {
  name = "lightdm-${version}";

  src = fetchurl {
    url = "${meta.homepage}/${ver_branch}/${version}/+download/${name}.tar.xz";
    sha256 = "0nwwjgc9xvwili6714ag88wsrf0lr5hv1i6z9f0xvin4ym18cbs5";
  };

  patches = [ ./lightdm.patch ];
  patchFlags = "-p0";

  buildInputs = [
    pkgconfig pam libxcb glib libXdmcp itstool libxml2 intltool libxklavier libgcrypt
  ] ++ stdenv.lib.optional doCheck dbus.daemon;

  configureFlags = [ "--enable-liblightdm-gobject" "--localstatedir=/var" ];

  doCheck = false; # some tests fail, don't know why

  meta = {
    homepage = http://launchpad.net/lightdm;
    platforms = stdenv.lib.platforms.linux;
  };
}