Skip to content

Commit

Permalink
Merge branch 'master' into cross-compiling-postgresql
Browse files Browse the repository at this point in the history
  • Loading branch information
dingxiangfei2009 committed Jul 30, 2018
2 parents 8947051 + bd05e87 commit 56aa3b4
Show file tree
Hide file tree
Showing 78 changed files with 748 additions and 386 deletions.
9 changes: 9 additions & 0 deletions nixos/modules/services/networking/avahi-daemon.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ let
[reflector]
enable-reflector=${yesNo reflector}
${extraConfig}
'';

in
Expand Down Expand Up @@ -176,6 +177,14 @@ in
'';
};

extraConfig = mkOption {
default = "";
type = types.lines;
description = ''
Extra config to append to avahi-daemon.conf.
'';
};

};

};
Expand Down
19 changes: 13 additions & 6 deletions nixos/modules/services/x11/desktop-managers/lxqt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@ in
name = "lxqt";
bgSupport = true;
start = ''
# Upstream installs default configuration files in
# $prefix/share/lxqt instead of $prefix/etc/xdg, (arguably)
# giving distributors freedom to ship custom default
# configuration files more easily. In order to let the session
# manager find them the share subdirectory is added to the
# XDG_CONFIG_DIRS environment variable.
#
# For an explanation see
# https://github.com/lxqt/lxqt/issues/1521#issuecomment-405097453
#
export XDG_CONFIG_DIRS=$XDG_CONFIG_DIRS''${XDG_CONFIG_DIRS:+:}${config.system.path}/share
exec ${pkgs.lxqt.lxqt-session}/bin/startlxqt
'';
};
Expand All @@ -53,16 +65,11 @@ in
config.environment.lxqt.excludePackages);

# Link some extra directories in /run/current-system/software/share
environment.pathsToLink = [
"/share/desktop-directories"
"/share/icons"
"/share/lxqt"
];
environment.pathsToLink = [ "/share" ];

environment.variables.GIO_EXTRA_MODULES = [ "${pkgs.gvfs}/lib/gio/modules" ];

services.upower.enable = config.powerManagement.enable;
};


}
4 changes: 2 additions & 2 deletions pkgs/applications/audio/mopidy/iris.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

pythonPackages.buildPythonApplication rec {
pname = "Mopidy-Iris";
version = "3.21.3";
version = "3.23.0";

src = pythonPackages.fetchPypi {
inherit pname version;
sha256 = "0gp51zz5qr93w0h14m1blmjnlgmilyb15lw2m75varslw1ar7vlg";
sha256 = "1zhd82mzbzc9jx7xhglgq0giyy214ypq1rw5kmhp5zswv71hf2j0";
};

propagatedBuildInputs = [
Expand Down
68 changes: 49 additions & 19 deletions pkgs/applications/display-managers/lightdm/default.nix
Original file line number Diff line number Diff line change
@@ -1,34 +1,61 @@
{ stdenv, fetchurl, pam, pkgconfig, libxcb, glib, libXdmcp, itstool, libxml2
, intltool, libxklavier, libgcrypt, audit, coreutils
, qt4 ? null
{ stdenv, fetchFromGitHub, pam, pkgconfig, autoconf, automake, libtool, libxcb
, glib, libXdmcp, itstool, intltool, libxklavier, libgcrypt, audit, busybox
, polkit, accountsservice, gtk-doc, gnome3, gobjectIntrospection, vala
, withQt4 ? false, qt4
, withQt5 ? false, qtbase
}:

with stdenv.lib;

let
ver_branch = "1.24";
version = "1.24.0";
in
stdenv.mkDerivation rec {
name = "lightdm-${version}";
pname = "lightdm";
version = "1.26.0";

src = fetchurl {
url = "${meta.homepage}/${ver_branch}/${version}/+download/${name}.tar.xz";
sha256 = "18j33bm54i8k7ncxcs69zqi4105s62n58jrydqn3ikrb71s9nl6d";
name = "${pname}-${version}";

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 = [
pam libxcb glib libXdmcp itstool libxml2 libxklavier libgcrypt
qt4 audit
] ++ optional withQt5 qtbase;
accountsservice
audit
glib
libgcrypt
libxcb
libXdmcp
libxklavier
pam
polkit
] ++ optional withQt4 qt4
++ optional withQt5 qtbase;


preConfigure = "NOCONFIGURE=1 ./autogen.sh";

configureFlags = [
"--localstatedir=/var"
"--sysconfdir=/etc"
"--disable-tests"
] ++ optional (qt4 != null) "--enable-liblightdm-qt"
"--disable-static"
] ++ optional withQt4 "--enable-liblightdm-qt"
++ optional withQt5 "--enable-liblightdm-qt5";

installFlags = [
Expand All @@ -37,14 +64,17 @@ stdenv.mkDerivation rec {
];

prePatch = ''
substituteInPlace autogen.sh \
--replace "which" "${busybox}/bin/which"
substituteInPlace src/shared-data-manager.c \
--replace /bin/rm ${coreutils}/bin/rm
--replace /bin/rm ${busybox}/bin/rm
'';

meta = {
homepage = https://launchpad.net/lightdm;
homepage = https://github.com/CanonicalLtd/lightdm;
platforms = platforms.linux;
license = licenses.gpl3;
maintainers = with maintainers; [ ocharles wkennington ];
maintainers = with maintainers; [ ocharles wkennington worldofpeace ];
};
}

0 comments on commit 56aa3b4

Please sign in to comment.