Skip to content

Commit

Permalink
Merge pull request NixOS#59098 from NixOS/staging-next
Browse files Browse the repository at this point in the history
Staging next
  • Loading branch information
FRidh authored Apr 11, 2019
2 parents b54bce2 + d85c466 commit 993e2b4
Show file tree
Hide file tree
Showing 298 changed files with 3,989 additions and 2,838 deletions.
2 changes: 1 addition & 1 deletion nixos/doc/manual/installation/installing.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

<para>
To manually configure the network on the graphical installer, first disable
network-manager with <command>systemctl stop network-manager</command>.
network-manager with <command>systemctl stop NetworkManager</command>.
</para>

<para>
Expand Down
7 changes: 7 additions & 0 deletions nixos/doc/manual/release-notes/rl-1909.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@
DynamicUser mechanism</link> which obviates these options.
</para>
</listitem>
<listitem>
<para>
The NetworkManager systemd unit was renamed back from network-manager.service to
NetworkManager.service for better compatibility with other applications expecting this name.
The same applies to ModemManager where modem-manager.service is now called ModemManager.service again.
</para>
</listitem>
</itemizedlist>
</section>

Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/config/system-path.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ with lib;

let

requiredPackages = map lib.lowPrio
requiredPackages = map (pkg: setPrio ((pkg.meta.priority or 5) + 3) pkg)
[ config.nix.package
pkgs.acl
pkgs.attr
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@
./services/desktops/pipewire.nix
./services/desktops/gnome3/at-spi2-core.nix
./services/desktops/gnome3/chrome-gnome-shell.nix
./services/desktops/gnome3/evince.nix
./services/desktops/gnome3/evolution-data-server.nix
./services/desktops/gnome3/file-roller.nix
./services/desktops/gnome3/gnome-disks.nix
Expand Down
35 changes: 35 additions & 0 deletions nixos/modules/services/desktops/gnome3/evince.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Evince.

{ config, pkgs, lib, ... }:

with lib;

{

###### interface

options = {

services.gnome3.evince = {

enable = mkEnableOption
"systemd and dbus services for Evince, the GNOME document viewer";

};

};


###### implementation

config = mkIf config.services.gnome3.evince.enable {

environment.systemPackages = [ pkgs.evince ];

services.dbus.packages = [ pkgs.evince ];

systemd.packages = [ pkgs.evince ];

};

}
8 changes: 4 additions & 4 deletions nixos/modules/services/networking/networkmanager.nix
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ in {

systemd.packages = cfg.packages;

systemd.services."network-manager" = {
systemd.services."NetworkManager" = {
wantedBy = [ "network.target" ];
restartTriggers = [ configFile ];

Expand All @@ -478,9 +478,9 @@ in {
};

systemd.services.nm-setup-hostsdirs = mkIf dynamicHostsEnabled {
wantedBy = [ "network-manager.service" ];
before = [ "network-manager.service" ];
partOf = [ "network-manager.service" ];
wantedBy = [ "NetworkManager.service" ];
before = [ "NetworkManager.service" ];
partOf = [ "NetworkManager.service" ];
script = concatStrings (mapAttrsToList (n: d: ''
mkdir -p "/run/NetworkManager/hostsdirs/${n}"
chown "${d.user}:${d.group}" "/run/NetworkManager/hostsdirs/${n}"
Expand Down
7 changes: 6 additions & 1 deletion nixos/modules/services/x11/desktop-managers/gnome3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ in {
services.dleyna-renderer.enable = mkDefault true;
services.dleyna-server.enable = mkDefault true;
services.gnome3.at-spi2-core.enable = true;
services.gnome3.evince.enable = mkDefault true;
services.gnome3.evolution-data-server.enable = true;
services.gnome3.file-roller.enable = mkDefault true;
services.gnome3.gnome-disks.enable = mkDefault true;
Expand Down Expand Up @@ -160,7 +161,11 @@ in {
# If gnome3 is installed, build vim for gtk3 too.
nixpkgs.config.vim.gui = "gtk3";

fonts.fonts = [ pkgs.dejavu_fonts pkgs.cantarell-fonts ];
fonts.fonts = [
pkgs.dejavu_fonts pkgs.cantarell-fonts
pkgs.source-sans-pro
pkgs.source-code-pro # Default monospace font in 3.32
];

services.xserver.displayManager.extraSessionFilePackages = [ pkgs.gnome3.gnome-session ]
++ map
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/services/x11/desktop-managers/pantheon.nix
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ in
# pantheon has pantheon-agent-geoclue2
services.geoclue2.enableDemoAgent = false;
services.gnome3.at-spi2-core.enable = true;
services.gnome3.evince.enable = mkDefault true;
services.gnome3.evolution-data-server.enable = true;
services.gnome3.file-roller.enable = mkDefault true;
# TODO: gnome-keyring's xdg autostarts will still be in the environment (from elementary-session-settings) if disabled forcefully
Expand Down Expand Up @@ -168,7 +169,6 @@ in
gnome3.geary
gnome3.epiphany
gnome3.gnome-font-viewer
evince
] ++ pantheon.apps) config.environment.pantheon.excludePackages)
++ (with pkgs;
[
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/fluidsynth/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ let
sha256 = "0n75jq3xgq46hfmjkaaxz3gic77shs4fzajq40c8gk043i84xbdh";
};
"2" = {
fluidsynthVersion = "2.0.3";
sha256 = "00f6bhw4ddrinb5flvg5y53rcvnf4km23a6nbvnswmpq13568v78";
fluidsynthVersion = "2.0.4";
sha256 = "1v2vji02fbrjgypwb4fw2r90hnfwfbfh3d24j8vjwlbqxhxp16s0";
};
};
in
Expand Down
13 changes: 2 additions & 11 deletions pkgs/applications/audio/rhythmbox/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,15 @@
}:
let
pname = "rhythmbox";
version = "3.4.2";
version = "3.4.3";
in stdenv.mkDerivation rec {
name = "${pname}-${version}";

src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "0hzcns8gf5yb0rm4ss8jd8qzarcaplp5cylk6plwilsqfvxj4xn2";
sha256 = "1yx3n7p9vmv23jsv98fxwq95n78awdxqm8idhyhxx2d6vk4w1hgx";
};

patches = [
# build with GStreamer 1.14 https://bugzilla.gnome.org/show_bug.cgi?id=788706
(fetchurl {
name = "fmradio-Fix-build-with-GStreamer-master.patch";
url = https://bugzilla.gnome.org/attachment.cgi?id=361178;
sha256 = "1h09mimlglj9hcmc3pfp0d6c277mqh2khwv9fryk43pkv3904d2w";
})
];

nativeBuildInputs = [
pkgconfig
intltool perl perlPackages.XMLParser
Expand Down
45 changes: 31 additions & 14 deletions pkgs/applications/editors/gnome-builder/default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{ stdenv
{ gcc8Stdenv
, ctags
, appstream-glib
, desktop-file-utils
, docbook_xsl
, docbook_xml_dtd_43
, fetchurl
, flatpak
, glibcLocales
, gnome3
, libgit2-glib
, gobject-introspection
Expand All @@ -31,28 +31,33 @@
, vte
, webkitgtk
, wrapGAppsHook
, dbus
, xvfb_run
}:

let
version = "3.30.3";
# Does not build with GCC 7
# https://gitlab.gnome.org/GNOME/gnome-builder/issues/868
stdenv = gcc8Stdenv;
in
stdenv.mkDerivation rec {
pname = "gnome-builder";
in stdenv.mkDerivation {
name = "${pname}-${version}";
version = "3.32.0";

src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "11h6apjyah91djf77m8xkl5rvdz7mwpp3bjc4yzzs9lm3pag764r";
sha256 = "00l7sshpndk995aw98mjmsc3mxhxzynlp7il551iwwjjdbc70qp4";
};

nativeBuildInputs = [
#appstream-glib # tests fail if these tools are available
appstream-glib
desktop-file-utils
docbook_xsl
docbook_xml_dtd_43
glibcLocales # for Meson's gtkdochelper
gobject-introspection
gtk-doc
hicolor-icon-theme
meson
(meson.override ({ inherit stdenv; }))
ninja
pkgconfig
python3
Expand All @@ -64,6 +69,7 @@ in stdenv.mkDerivation {
ctags
flatpak
gnome3.devhelp
gnome3.glade
libgit2-glib
libpeas
vte
Expand All @@ -83,6 +89,11 @@ in stdenv.mkDerivation {
webkitgtk
];

checkInputs = [
dbus
xvfb_run
];

outputs = [ "out" "devdoc" ];

prePatch = ''
Expand All @@ -91,19 +102,25 @@ in stdenv.mkDerivation {

mesonFlags = [
"-Dpython_libprefix=${python3.libPrefix}"
"-Dwith_docs=true"
"-Ddocs=true"

# Making the build system correctly detect clang header and library paths
# is difficult. Somebody should look into fixing this.
"-Dwith_clang=false"
"-Dplugin_clang=false"

# Do not try to check if appstream images exist
"-Dnetwork_tests=false"
];

# Some tests fail due to being unable to find the Vte typelib, and I don't
# understand why. Somebody should look into fixing this.
doCheck = false;
doCheck = true;

preInstall = ''
export LC_ALL="en_US.utf-8"
checkPhase = ''
export NO_AT_BRIDGE=1
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
meson test --print-errorlogs
'';

pythonPath = with python3.pkgs; requiredPythonModules [ pygobject3 ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/editors/gnome-latex/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{ stdenv, fetchurl, wrapGAppsHook, gsettings-desktop-schemas, gspell, gtksourceview4, libgee
, tepl, amtk, gnome3, glib, pkgconfig, intltool, itstool, libxml2 }:
let
version = "3.30.2";
version = "3.32.0";
pname = "gnome-latex";
in stdenv.mkDerivation {
name = "${pname}-${version}";

src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0fn3vy6w714wy0bz3y11zpdprpwxbv5xfiyyxjwp2nix9mbvv2sm";
sha256 = "1jdca9yhm7mm1aijd1a5amphgn15142kngky3id2am379ixrq1hg";
};

NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
Expand Down
4 changes: 0 additions & 4 deletions pkgs/applications/editors/kdevelop5/kdev-php.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ stdenv.mkDerivation rec {
sha256 = "0yjn7y7al2xs8g0mrjvcym8gbjy4wmiv7lsljcrasjd7ymag1wgs";
};

cmakeFlags = [
"-DBUILD_TESTING=OFF"
];

nativeBuildInputs = [ cmake extra-cmake-modules ];
buildInputs = [ kdevelop-pg-qt threadweaver ktexteditor kdevelop-unwrapped ];

Expand Down
1 change: 0 additions & 1 deletion pkgs/applications/editors/kdevelop5/kdev-python.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ stdenv.mkDerivation rec {
};

cmakeFlags = [
"-DBUILD_TESTING=OFF"
"-DPYTHON_EXECUTABLE=${python}/bin/python"
];

Expand Down
1 change: 0 additions & 1 deletion pkgs/applications/graphics/seg3d/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ stdenv.mkDerivation {
"-DBUILD_BIOMESH3D=1"
"-DWITH_TETGEN=1"
"-DBUILD_TYPE=Release"
"-DBUILD_TESTING=0"
"-DWITH_WXWIDGETS=ON"
"-DITK_DIR=${itk}/lib/InsightToolkit"
"-DGDCM_LIBRARY=${itk}/lib/libitkgdcm.a"
Expand Down
Loading

0 comments on commit 993e2b4

Please sign in to comment.