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

51 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pam, pkgconfig, libxcb, glib, libXdmcp, itstool, libxml2
, intltool, libxklavier, libgcrypt, audit, coreutils
2015-09-27 16:37:23 +01:00
, qt4 ? null
, withQt5 ? false, qtbase
2015-03-10 00:32:49 +00:00
}:
with stdenv.lib;
let
2017-10-29 19:54:18 +00:00
ver_branch = "1.24";
version = "1.24.0";
in
stdenv.mkDerivation rec {
name = "lightdm-${version}";
src = fetchurl {
url = "${meta.homepage}/${ver_branch}/${version}/+download/${name}.tar.xz";
2017-10-29 19:54:18 +00:00
sha256 = "18j33bm54i8k7ncxcs69zqi4105s62n58jrydqn3ikrb71s9nl6d";
};
nativeBuildInputs = [ pkgconfig intltool ];
buildInputs = [
pam libxcb glib libXdmcp itstool libxml2 libxklavier libgcrypt
qt4 audit
] ++ optional withQt5 qtbase;
2015-03-10 00:32:49 +00:00
configureFlags = [
"--localstatedir=/var"
"--sysconfdir=/etc"
2015-09-18 07:24:48 +01:00
"--disable-tests"
] ++ optional (qt4 != null) "--enable-liblightdm-qt"
++ optional withQt5 "--enable-liblightdm-qt5";
2015-04-05 06:20:28 +01:00
installFlags = [
"sysconfdir=\${out}/etc"
"localstatedir=\${TMPDIR}"
];
prePatch = ''
substituteInPlace src/shared-data-manager.c \
--replace /bin/rm ${coreutils}/bin/rm
'';
meta = {
2015-05-29 00:23:46 +01:00
homepage = https://launchpad.net/lightdm;
2015-03-10 00:32:49 +00:00
platforms = platforms.linux;
license = licenses.gpl3;
maintainers = with maintainers; [ ocharles wkennington ];
};
}