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

48 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pam, pkgconfig, libxcb, glib, libXdmcp, itstool, libxml2
2015-03-10 00:32:49 +00:00
, intltool, x11, libxklavier, libgcrypt
, qt4 ? null, qt5 ? null
}:
let
2015-03-28 05:44:17 +00:00
ver_branch = "1.14";
version = "1.14.0";
in
stdenv.mkDerivation rec {
name = "lightdm-${version}";
src = fetchurl {
url = "${meta.homepage}/${ver_branch}/${version}/+download/${name}.tar.xz";
2015-03-28 05:44:17 +00:00
sha256 = "0fkbzqncx34dhylrg5328fih7xywmsqj2p40smnx33nyf047jdgc";
};
buildInputs = [
pkgconfig pam libxcb glib libXdmcp itstool libxml2 intltool libxklavier libgcrypt
2015-03-10 00:32:49 +00:00
qt4 qt5
];
configureFlags = [
"--enable-liblightdm-gobject"
"--localstatedir=/var"
"--sysconfdir=/etc"
] ++ stdenv.lib.optional (qt4 != null) "--enable-liblightdm-qt"
++ stdenv.lib.optional (qt5 != null) "--enable-liblightdm-qt5";
2015-03-10 00:32:49 +00:00
installFlags = [ "DESTDIR=\${out}" ];
2015-03-10 00:32:49 +00:00
# Correct for the nested nix folder tree
postInstall = ''
mv $out/$out/* $out
DIR=$out/$out
while rmdir $DIR 2>/dev/null; do
DIR="$(dirname "$DIR")"
done
'';
2015-03-10 00:32:49 +00:00
meta = with stdenv.lib; {
homepage = http://launchpad.net/lightdm;
2015-03-10 00:32:49 +00:00
platforms = platforms.linux;
license = licenses.gpl3;
maintainers = with maintainers; [ ocharles wkennington ];
};
}