Skip to content

Commit

Permalink
Merge branch 'master' into refs/top-bases/experimental/haxe
Browse files Browse the repository at this point in the history
* master: (319 commits)
  Add gitg: Gnome GUI for git
  Remove "v" prefix from package versions to make them machine-readable
  wireshark: update from 1.10.3 to 1.10.5, potentially fixes CVE-2013-7112, CVE-2013-7113, CVE-2013-7114
  libupnp: update from 1.6.6 to 1.6.19, potentially fixes CVE-2012-5958, CVE-2012-5959, CVE-2012-5960
  Update libmicrohttpd to 0.9.33. CVE-2013-7038, CVE-2013-7039
  p11-kit: 0.7 -> 0.20.1
  remove gnome3.scrollkeeper (obsolete)
  gnome3.gnome-dictionary: 3.5.2 -> 3.10.0
  Add gnome3.dconf
  gnome3.libgweather: 3.6.2 -> 3.10.1
  gnome3.gnome-terminal: 3.4.1.1 -> 3.10.2
  gnome3.gnome_keyring: 3.6.3 -> 3.10.1
  gnome3.gcr: 3.6.3 -> 3.10.1
  gnome3.gconf: 3.2.5 -> 3.2.6
  gnome3: build packages on linux platform
  remove pointless passthru meta
  fix typo in gnome3.libpeas
  Add gnome3.file-roller
  Add gnome3.nautilus and remove gnome2.nautilus (didn't compile)
  add gnome.eog: GNOME Image Viewer
  ...
  • Loading branch information
MarcWeber committed Jan 11, 2014
2 parents 7e2aba3 + 153b4cc commit 6529351
Show file tree
Hide file tree
Showing 378 changed files with 3,775 additions and 5,185 deletions.
3 changes: 2 additions & 1 deletion doc/quick-start.xml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ $ emacs pkgs/top-level/all-packages.nix</screen>
</listitem>

<listitem>
<para>Test whether the package builds:
<para>To test whether the package builds, run the following command
from the root of the nixpkgs source tree:

<screen>
$ nix-build -A libfoo</screen>
Expand Down
2 changes: 2 additions & 0 deletions lib/maintainers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@
garbas = "Rok Garbas <[email protected]>";
goibhniu = "Cillian de Róiste <[email protected]>";
guibert = "David Guibert <[email protected]>";
ianwookim = "Ian-Woo Kim <[email protected]>";
iElectric = "Domen Kozar <[email protected]>";
iyzsong = "Song Wenwu <[email protected]>";
jcumming = "Jack Cummings <[email protected]>";
kkallio = "Karn Kallio <[email protected]>";
ktosiek = "Tomasz Kontusz <[email protected]>";
lovek323 = "Jason O'Conal <[email protected]>";
ludo = "Ludovic Courtès <[email protected]>";
marcweber = "Marc Weber <[email protected]>";
Expand Down
2 changes: 1 addition & 1 deletion nixos/doc/manual/configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,7 @@ with other kernel modules.</para>
<para>On 64-bit systems, if you want full acceleration for 32-bit
programs such as Wine, you should also set the following:
<programlisting>
service.xserver.driSupport32Bit = true;
services.xserver.driSupport32Bit = true;
</programlisting>
</para>

Expand Down
1 change: 1 addition & 0 deletions nixos/modules/services/networking/dhcpcd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ let
ignoredInterfaces =
map (i: i.name) (filter (i: i.ipAddress != null) (attrValues config.networking.interfaces))
++ concatLists (attrValues (mapAttrs (n: v: v.interfaces) config.networking.bridges))
++ concatLists (attrValues (mapAttrs (n: v: v.interfaces) config.networking.bonds))
++ config.networking.dhcpcd.denyInterfaces;

# Config file adapted from the one that ships with dhcpcd.
Expand Down
5 changes: 5 additions & 0 deletions nixos/modules/services/networking/networkmanager.nix
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ in {
{ source = "${networkmanager_openconnect}/etc/NetworkManager/VPN/nm-openconnect-service.name";
target = "NetworkManager/VPN/nm-openconnect-service.name";
}
{ source = "${networkmanager_pptp}/etc/NetworkManager/VPN/nm-pptp-service.name";
target = "NetworkManager/VPN/nm-pptp-service.name";
}
] ++ pkgs.lib.optional (cfg.appendNameservers == [] || cfg.insertNameservers == [])
{ source = overrideNameserversScript;
target = "NetworkManager/dispatcher.d/02overridedns";
Expand All @@ -155,6 +158,7 @@ in {
networkmanager_openvpn
networkmanager_vpnc
networkmanager_openconnect
networkmanager_pptp
];

users.extraGroups = singleton {
Expand Down Expand Up @@ -199,6 +203,7 @@ in {
networkmanager_openvpn
networkmanager_vpnc
networkmanager_openconnect
networkmanager_pptp
];

services.udev.packages = cfg.packages;
Expand Down
2 changes: 2 additions & 0 deletions nixos/modules/services/x11/redshift.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ in {
systemd.services.redshift = {
description = "Redshift colour temperature adjuster";
requires = [ "display-manager.service" ];
after = [ "display-manager.service" ];
script = ''
${pkgs.redshift}/bin/redshift \
-l ${cfg.latitude}:${cfg.longitude} \
-t ${toString cfg.temperature.day}:${toString cfg.temperature.night}
'';
environment = { DISPLAY = ":0"; };
serviceConfig.Restart = "always";
};
};
}
11 changes: 2 additions & 9 deletions nixos/modules/services/x11/xserver.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ let
ati_unfree = { modules = [ kernelPackages.ati_drivers_x11 ]; driverName = "fglrx"; };
nouveau = { modules = [ pkgs.xf86_video_nouveau ]; };
nvidia = { modules = [ kernelPackages.nvidia_x11 ]; };
nvidiaLegacy96 = { modules = [ kernelPackages.nvidia_x11_legacy96 ]; driverName = "nvidia"; };
nvidiaLegacy173 = { modules = [ kernelPackages.nvidia_x11_legacy173 ]; driverName = "nvidia"; };
nvidiaLegacy304 = { modules = [ kernelPackages.nvidia_x11_legacy304 ]; driverName = "nvidia"; };
unichrome = { modules = [ pkgs.xorgVideoUnichrome ]; };
Expand Down Expand Up @@ -443,7 +442,6 @@ in

boot.extraModulePackages =
optional (elem "nvidia" driverNames) kernelPackages.nvidia_x11 ++
optional (elem "nvidiaLegacy96" driverNames) kernelPackages.nvidia_x11_legacy96 ++
optional (elem "nvidiaLegacy173" driverNames) kernelPackages.nvidia_x11_legacy173 ++
optional (elem "nvidiaLegacy304" driverNames) kernelPackages.nvidia_x11_legacy304 ++
optional (elem "virtualbox" driverNames) kernelPackages.virtualboxGuestAdditions ++
Expand Down Expand Up @@ -497,7 +495,6 @@ in
pkgs.xdg_utils
]
++ optional (elem "nvidia" driverNames) kernelPackages.nvidia_x11
++ optional (elem "nvidiaLegacy96" driverNames) kernelPackages.nvidia_x11_legacy96
++ optional (elem "nvidiaLegacy173" driverNames) kernelPackages.nvidia_x11_legacy173
++ optional (elem "nvidiaLegacy304" driverNames) kernelPackages.nvidia_x11_legacy304
++ optional (elem "virtualbox" driverNames) xorg.xrefresh
Expand All @@ -521,8 +518,6 @@ in
XORG_DRI_DRIVER_PATH = "/run/opengl-driver/lib/dri"; # !!! Depends on the driver selected at runtime.
} // optionalAttrs (elem "nvidia" driverNames) {
LD_LIBRARY_PATH = "${xorg.libX11}/lib:${xorg.libXext}/lib:${kernelPackages.nvidia_x11}/lib";
} // optionalAttrs (elem "nvidiaLegacy96" driverNames) {
LD_LIBRARY_PATH = "${xorg.libX11}/lib:${xorg.libXext}/lib:${kernelPackages.nvidia_x11_legacy96}/lib";
} // optionalAttrs (elem "nvidiaLegacy173" driverNames) {
LD_LIBRARY_PATH = "${xorg.libX11}/lib:${xorg.libXext}/lib:${kernelPackages.nvidia_x11_legacy173}/lib";
} // optionalAttrs (elem "nvidiaLegacy304" driverNames) {
Expand All @@ -542,17 +537,15 @@ in
''
ln -sf ${kernelPackages.nvidia_x11} /run/opengl-driver
${optionalString cfg.driSupport32Bit
"ln -sf ${pkgs_i686.linuxPackages.nvidia_x11.override { libsOnly = true; kernelDev = null; } } /run/opengl-driver-32"}
"ln -sf ${pkgs_i686.linuxPackages.nvidia_x11.override { libsOnly = true; kernel = null; } } /run/opengl-driver-32"}
''
else if elem "nvidiaLegacy96" driverNames then
"ln -sf ${kernelPackages.nvidia_x11_legacy96} /run/opengl-driver"
else if elem "nvidiaLegacy173" driverNames then
"ln -sf ${kernelPackages.nvidia_x11_legacy173} /run/opengl-driver"
else if elem "nvidiaLegacy304" driverNames then
''
ln -sf ${kernelPackages.nvidia_x11_legacy304} /run/opengl-driver
${optionalString cfg.driSupport32Bit
"ln -sf ${pkgs_i686.linuxPackages.nvidia_x11_legacy304.override { libsOnly = true; kernelDev = null; } } /run/opengl-driver-32"}
"ln -sf ${pkgs_i686.linuxPackages.nvidia_x11_legacy304.override { libsOnly = true; kernel = null; } } /run/opengl-driver-32"}
''
else if elem "ati_unfree" driverNames then
"ln -sf ${kernelPackages.ati_drivers_x11} /run/opengl-driver"
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/system/boot/loader/gummiboot/gummiboot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let

inherit (pkgs) python gummiboot;

inherit (config.environment) nix;
nix = config.nix.package;

inherit (cfg) timeout;

Expand Down
184 changes: 183 additions & 1 deletion nixos/modules/tasks/network-interfaces.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ let
cfg = config.networking;
interfaces = attrValues cfg.interfaces;
hasVirtuals = any (i: i.virtual) interfaces;
hasBonds = cfg.bonds != { };

interfaceOpts = { name, ... }: {

Expand Down Expand Up @@ -58,6 +59,15 @@ let
'';
};

mtu = mkOption {
default = null;
example = 9000;
type = types.nullOr types.int;
description = ''
MTU size for packets leaving the interface. Leave empty to use the default.
'';
};

virtual = mkOption {
default = false;
type = types.bool;
Expand Down Expand Up @@ -219,6 +229,99 @@ in

};

networking.bonds = mkOption {
default = { };
example = {
bond0 = {
interfaces = [ "eth0" "wlan0" ];
miimon = 100;
mode = "active-backup";
};
fatpipe.interfaces = [ "enp4s0f0" "enp4s0f1" "enp5s0f0" "enp5s0f1" ];
};
description = ''
This option allows you to define bond devices that aggregate multiple,
underlying networking interfaces together. The value of this option is
an attribute set. Each attribute specifies a bond, with the attribute
name specifying the name of the bond's network interface
'';

type = types.attrsOf types.optionSet;

options = {

interfaces = mkOption {
example = [ "enp4s0f0" "enp4s0f1" "wlan0" ];
type = types.listOf types.string;
description = "The interfaces to bond together";
};

miimon = mkOption {
default = null;
example = 100;
type = types.nullOr types.int;
description = ''
Miimon is the number of millisecond in between each round of polling
by the device driver for failed links. By default polling is not
enabled and the driver is trusted to properly detect and handle
failure scenarios.
'';
};

mode = mkOption {
default = null;
example = "active-backup";
type = types.nullOr types.string;
description = ''
The mode which the bond will be running. The default mode for
the bonding driver is balance-rr, optimizing for throughput.
More information about valid modes can be found at
https://www.kernel.org/doc/Documentation/networking/bonding.txt
'';
};

};
};

networking.vlans = mkOption {
default = { };
example = {
vlan0 = {
id = 3;
interface = "enp3s0";
};
vlan1 = {
id = 1;
interface = "wlan0";
};
};
description =
''
This option allows you to define vlan devices that tag packets
on top of a physical interface. The value of this option is an
attribute set. Each attribute specifies a vlan, with the name
specifying the name of the vlan interface.
'';

type = types.attrsOf types.optionSet;

options = {

id = mkOption {
example = 1;
type = types.int;
description = "The vlan identifier";
};

interface = mkOption {
example = "enp4s0";
type = types.string;
description = "The interface the vlan will transmit packets through.";
};

};
};

networking.useDHCP = mkOption {
type = types.bool;
default = true;
Expand All @@ -236,7 +339,15 @@ in

config = {

boot.kernelModules = optional cfg.enableIPv6 "ipv6" ++ optional hasVirtuals "tun";
boot.kernelModules = [ ]
++ optional cfg.enableIPv6 "ipv6"
++ optional hasVirtuals "tun"
++ optional hasBonds "bonding";

boot.extraModprobeConfig =
# This setting is intentional as it prevents default bond devices
# from being created.
optionalString hasBonds "options bonding max_bonds=0";

environment.systemPackages =
[ pkgs.host
Expand Down Expand Up @@ -342,6 +453,11 @@ in
echo "setting MAC address to ${i.macAddress}..."
ip link set "${i.name}" address "${i.macAddress}"
''
+ optionalString (i.mtu != null)
''
echo "setting MTU to ${toString i.mtu}..."
ip link set "${i.name}" mtu "${toString i.mtu}"
''
+ optionalString (i.ipAddress != null)
''
cur=$(ip -4 -o a show dev "${i.name}" | awk '{print $4}')
Expand Down Expand Up @@ -397,6 +513,9 @@ in
path = [ pkgs.bridge_utils pkgs.iproute ];
script =
''
# Remove Dead Interfaces
ip link show "${n}" >/dev/null 2>&1 && ip link delete "${n}"
brctl addbr "${n}"
# Set bridge's hello time to 0 to avoid startup delays.
Expand All @@ -421,10 +540,73 @@ in
'';
};

createBondDevice = n: v:
let
deps = map (i: "sys-subsystem-net-devices-${i}.device") v.interfaces;
in
{ description = "Bond Interface ${n}";
wantedBy = [ "network.target" "sys-subsystem-net-devices-${n}.device" ];
bindsTo = deps;
after = deps;
serviceConfig.Type = "oneshot";
serviceConfig.RemainAfterExit = true;
path = [ pkgs.ifenslave pkgs.iproute ];
script = ''
# Remove Dead Interfaces
ip link show "${n}" >/dev/null 2>&1 && ip link delete "${n}"
ip link add "${n}" type bond
# !!! There must be a better way to wait for the interface
while [ ! -d /sys/class/net/${n} ]; do sleep 0.1; done;
# Set the miimon and mode options
${optionalString (v.miimon != null)
"echo ${toString v.miimon} > /sys/class/net/${n}/bonding/miimon"}
${optionalString (v.mode != null)
"echo \"${v.mode}\" > /sys/class/net/${n}/bonding/mode"}
# Bring up the bridge and enslave the specified interfaces
ip link set "${n}" up
${flip concatMapStrings v.interfaces (i: ''
ifenslave "${n}" "${i}"
'')}
'';
postStop = ''
ip link set "${n}" down
ifenslave -d "${n}"
ip link delete "${n}"
'';
};

createVlanDevice = n: v:
let
deps = [ "sys-subsystem-net-devices-${v.interface}.device" ];
in
{ description = "Vlan Interface ${n}";
wantedBy = [ "network.target" "sys-subsystem-net-devices-${n}.device" ];
bindsTo = deps;
after = deps;
serviceConfig.Type = "oneshot";
serviceConfig.RemainAfterExit = true;
path = [ pkgs.iproute ];
script = ''
# Remove Dead Interfaces
ip link show "${n}" >/dev/null 2>&1 && ip link delete "${n}"
ip link add link "${v.interface}" "${n}" type vlan id "${toString v.id}"
ip link set "${n}" up
'';
postStop = ''
ip link delete "${n}"
'';
};

in listToAttrs (
map configureInterface interfaces ++
map createTunDevice (filter (i: i.virtual) interfaces))
// mapAttrs createBridgeDevice cfg.bridges
// mapAttrs createBondDevice cfg.bonds
// mapAttrs createVlanDevice cfg.vlans
// { "network-setup" = networkSetup; };

# Set the host and domain names in the activation script. Don't
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff -ur clementine-1.2.1-a/CMakeLists.txt clementine-1.2.1-b/CMakeLists.txt
--- clementine-1.2.1-a/CMakeLists.txt 2013-11-25 15:16:24.000000000 -0600
+++ clementine-1.2.1-b/CMakeLists.txt 2013-12-30 17:01:48.470011058 -0600
@@ -158,6 +158,10 @@
include_directories(${TAGLIB_INCLUDE_DIRS})
include_directories(${QJSON_INCLUDE_DIRS})
include_directories(${GSTREAMER_INCLUDE_DIRS})
+include_directories(${GSTREAMER_APP_INCLUDE_DIRS})
+include_directories(${GSTREAMER_BASE_INCLUDE_DIRS})
+include_directories(${GSTREAMER_CDDA_INCLUDE_DIRS})
+include_directories(${GSTREAMER_TAG_INCLUDE_DIRS})
include_directories(${GLIB_INCLUDE_DIRS})
include_directories(${GLIBCONFIG_INCLUDE_DIRS})
include_directories(${LIBXML_INCLUDE_DIRS})
Loading

0 comments on commit 6529351

Please sign in to comment.