mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
lightdm: 1.24.0 -> 1.26.0
* now uses fetchFromGitHub too
This commit is contained in:
parent
e0d23b12ef
commit
ed8fbbbfa9
@ -1,34 +1,61 @@
|
|||||||
{ stdenv, fetchurl, pam, pkgconfig, libxcb, glib, libXdmcp, itstool, libxml2
|
{ stdenv, fetchFromGitHub, pam, pkgconfig, autoconf, automake, libtool, libxcb
|
||||||
, intltool, libxklavier, libgcrypt, audit, coreutils
|
, glib, libXdmcp, itstool, intltool, libxklavier, libgcrypt, audit, busybox
|
||||||
, qt4 ? null
|
, polkit, accountsservice, gtk-doc, gnome3, gobjectIntrospection, vala
|
||||||
|
, withQt4 ? false, qt4
|
||||||
, withQt5 ? false, qtbase
|
, withQt5 ? false, qtbase
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
let
|
|
||||||
ver_branch = "1.24";
|
|
||||||
version = "1.24.0";
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "lightdm-${version}";
|
pname = "lightdm";
|
||||||
|
version = "1.26.0";
|
||||||
|
|
||||||
src = fetchurl {
|
name = "${pname}-${version}";
|
||||||
url = "${meta.homepage}/${ver_branch}/${version}/+download/${name}.tar.xz";
|
|
||||||
sha256 = "18j33bm54i8k7ncxcs69zqi4105s62n58jrydqn3ikrb71s9nl6d";
|
src = fetchFromGitHub {
|
||||||
|
owner = "CanonicalLtd";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1mhj6l025cnf2dzxnbzlk0qa9fm4gj2aw58qh5fl4ky87dp4wdyb";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig intltool ];
|
nativeBuildInputs = [
|
||||||
|
autoconf
|
||||||
|
automake
|
||||||
|
gnome3.yelp-tools
|
||||||
|
gnome3.yelp-xsl
|
||||||
|
gobjectIntrospection
|
||||||
|
gtk-doc
|
||||||
|
intltool
|
||||||
|
itstool
|
||||||
|
libtool
|
||||||
|
pkgconfig
|
||||||
|
vala
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pam libxcb glib libXdmcp itstool libxml2 libxklavier libgcrypt
|
accountsservice
|
||||||
qt4 audit
|
audit
|
||||||
] ++ optional withQt5 qtbase;
|
glib
|
||||||
|
libgcrypt
|
||||||
|
libxcb
|
||||||
|
libXdmcp
|
||||||
|
libxklavier
|
||||||
|
pam
|
||||||
|
polkit
|
||||||
|
] ++ optional withQt4 qt4
|
||||||
|
++ optional withQt5 qtbase;
|
||||||
|
|
||||||
|
|
||||||
|
preConfigure = "NOCONFIGURE=1 ./autogen.sh";
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--localstatedir=/var"
|
"--localstatedir=/var"
|
||||||
"--sysconfdir=/etc"
|
"--sysconfdir=/etc"
|
||||||
"--disable-tests"
|
"--disable-tests"
|
||||||
] ++ optional (qt4 != null) "--enable-liblightdm-qt"
|
"--disable-static"
|
||||||
|
] ++ optional withQt4 "--enable-liblightdm-qt"
|
||||||
++ optional withQt5 "--enable-liblightdm-qt5";
|
++ optional withQt5 "--enable-liblightdm-qt5";
|
||||||
|
|
||||||
installFlags = [
|
installFlags = [
|
||||||
@ -37,14 +64,17 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
|
substituteInPlace autogen.sh \
|
||||||
|
--replace "which" "${busybox}/bin/which"
|
||||||
|
|
||||||
substituteInPlace src/shared-data-manager.c \
|
substituteInPlace src/shared-data-manager.c \
|
||||||
--replace /bin/rm ${coreutils}/bin/rm
|
--replace /bin/rm ${busybox}/bin/rm
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = https://launchpad.net/lightdm;
|
homepage = https://github.com/CanonicalLtd/lightdm;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
maintainers = with maintainers; [ ocharles wkennington ];
|
maintainers = with maintainers; [ ocharles wkennington worldofpeace ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -11866,7 +11866,7 @@ with pkgs;
|
|||||||
sofia_sip = callPackage ../development/libraries/sofia-sip { };
|
sofia_sip = callPackage ../development/libraries/sofia-sip { };
|
||||||
|
|
||||||
soil = callPackage ../development/libraries/soil { };
|
soil = callPackage ../development/libraries/soil { };
|
||||||
|
|
||||||
sonic = callPackage ../development/libraries/sonic { };
|
sonic = callPackage ../development/libraries/sonic { };
|
||||||
|
|
||||||
soprano = callPackage ../development/libraries/soprano { };
|
soprano = callPackage ../development/libraries/soprano { };
|
||||||
@ -18289,10 +18289,7 @@ with pkgs;
|
|||||||
|
|
||||||
insync = callPackage ../applications/networking/insync { };
|
insync = callPackage ../applications/networking/insync { };
|
||||||
|
|
||||||
lightdm = libsForQt5.callPackage ../applications/display-managers/lightdm {
|
lightdm = libsForQt5.callPackage ../applications/display-managers/lightdm { };
|
||||||
qt4 = null;
|
|
||||||
withQt5 = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
lightdm_qt = lightdm.override { withQt5 = true; };
|
lightdm_qt = lightdm.override { withQt5 = true; };
|
||||||
|
|
||||||
@ -20941,7 +20938,7 @@ with pkgs;
|
|||||||
spyder = pythonPackages.spyder;
|
spyder = pythonPackages.spyder;
|
||||||
|
|
||||||
openspace = callPackage ../applications/science/astronomy/openspace { };
|
openspace = callPackage ../applications/science/astronomy/openspace { };
|
||||||
|
|
||||||
stellarium = libsForQt5.callPackage ../applications/science/astronomy/stellarium { };
|
stellarium = libsForQt5.callPackage ../applications/science/astronomy/stellarium { };
|
||||||
|
|
||||||
tulip = callPackage ../applications/science/misc/tulip {
|
tulip = callPackage ../applications/science/misc/tulip {
|
||||||
|
Loading…
Reference in New Issue
Block a user