Skip to content

Commit

Permalink
Merge branch 'master' into staging
Browse files Browse the repository at this point in the history
A couple thousand rebuilds from master.
  • Loading branch information
vcunat committed Nov 11, 2017
2 parents ac522cb + 2b2088e commit 8559b6d
Show file tree
Hide file tree
Showing 180 changed files with 2,539 additions and 2,244 deletions.
1 change: 1 addition & 0 deletions lib/licenses.nix
Expand Up @@ -219,6 +219,7 @@ lib.mapAttrs (n: v: v // { shortName = n; }) rec {
ffsl = {
fullName = "Floodgap Free Software License";
url = http://www.floodgap.com/software/ffsl/license.html;
free = false;
};

free = {
Expand Down
1 change: 1 addition & 0 deletions lib/maintainers.nix
Expand Up @@ -358,6 +358,7 @@
linus = "Linus Arver <linusarver@gmail.com>";
lluchs = "Lukas Werling <lukas.werling@gmail.com>";
lnl7 = "Daiderd Jordan <daiderd@gmail.com>";
lo1tuma = "Mathias Schreck <schreck.mathias@gmail.com>";
loskutov = "Ignat Loskutov <ignat.loskutov@gmail.com>";
lovek323 = "Jason O'Conal <jason@oconal.id.au>";
lowfatcomputing = "Andreas Wagner <andreas.wagner@lowfatcomputing.org>";
Expand Down
14 changes: 11 additions & 3 deletions nixos/lib/make-disk-image.nix
Expand Up @@ -64,7 +64,7 @@ let
${channelSources}
'';

prepareImageInputs = with pkgs; [ rsync utillinux parted e2fsprogs lkl fakeroot config.system.build.nixos-prepare-root ] ++ stdenv.initialPath;
prepareImageInputs = with pkgs; [ rsync utillinux parted e2fsprogs lkl fakeroot libfaketime config.system.build.nixos-prepare-root ] ++ stdenv.initialPath;

# I'm preserving the line below because I'm going to search for it across nixpkgs to consolidate
# image building logic. The comment right below this now appears in 4 different places in nixpkgs :)
Expand All @@ -86,7 +86,7 @@ let
offset=0
''}
mkfs.${fsType} -F -L nixos -E offset=$offset $diskImage
faketime -f "1970-01-01 00:00:01" mkfs.${fsType} -F -L nixos -E offset=$offset $diskImage
root="$PWD/root"
mkdir -p $root
Expand Down Expand Up @@ -124,7 +124,15 @@ let
fakeroot nixos-prepare-root $root ${channelSources} ${config.system.build.toplevel} closure
echo "copying staging root to image..."
cptofs ${pkgs.lib.optionalString partitioned "-P 1"} -t ${fsType} -i $diskImage $root/* /
# If we don't faketime, we can end up with timestamps other than 1 on the nix store, which
# will confuse Nix in some situations (e.g., breaking image builds in the target image)
# N.B: I use 0 here, which results in timestamp = 1 in the image. It's weird but see
# https://github.com/lkl/linux/issues/393. Also, running under faketime makes `cptofs` super
# noisy and it prints out that it can't find a bunch of files, and then works anyway. We'll
# shut it up someday but trying to do a stderr filter through grep is running into some nasty
# bug in some eval nonsense we have in runInLinuxVM and I'm sick of trying to fix it.
faketime -f "1970-01-01 00:00:00" \
cptofs ${pkgs.lib.optionalString partitioned "-P 1"} -t ${fsType} -i $diskImage $root/* /
'';
in pkgs.vmTools.runInLinuxVM (
pkgs.runCommand name
Expand Down
25 changes: 12 additions & 13 deletions nixos/modules/installer/tools/nixos-prepare-root.sh
Expand Up @@ -31,24 +31,24 @@ if ! test -e "$mountPoint"; then
fi

# Create a few of the standard directories in the target root directory.
mkdir -m 0755 -p $mountPoint/dev $mountPoint/proc $mountPoint/sys $mountPoint/etc $mountPoint/run $mountPoint/home
mkdir -m 01777 -p $mountPoint/tmp
mkdir -m 0755 -p $mountPoint/tmp/root
mkdir -m 0755 -p $mountPoint/var
mkdir -m 0700 -p $mountPoint/root
install -m 0755 -d $mountPoint/dev $mountPoint/proc $mountPoint/sys $mountPoint/etc $mountPoint/run $mountPoint/home
install -m 01777 -d $mountPoint/tmp
install -m 0755 -d $mountPoint/tmp/root
install -m 0755 -d $mountPoint/var
install -m 0700 -d $mountPoint/root

ln -sf /run $mountPoint/var/run

# Create the necessary Nix directories on the target device
mkdir -m 0755 -p \
install -m 0755 -d \
$mountPoint/nix/var/nix/gcroots \
$mountPoint/nix/var/nix/temproots \
$mountPoint/nix/var/nix/userpool \
$mountPoint/nix/var/nix/profiles \
$mountPoint/nix/var/nix/db \
$mountPoint/nix/var/log/nix/drvs

mkdir -m 1775 -p $mountPoint/nix/store
install -m 1775 -d $mountPoint/nix/store

# All Nix operations below should operate on our target store, not /nix/store.
# N.B: this relies on Nix 1.12 or higher
Expand Down Expand Up @@ -80,7 +80,7 @@ if [ ! -x $mountPoint/@shell@ ]; then
echo "Error: @shell@ wasn't included in the closure" >&2
exit 1
fi
mkdir -m 0755 -p $mountPoint/bin
install -m 0755 -d $mountPoint/bin
ln -sf @shell@ $mountPoint/bin/sh

echo "setting the system closure to '$system'..."
Expand All @@ -89,17 +89,16 @@ nix-env "${extraBuildFlags[@]}" -p $mountPoint/nix/var/nix/profiles/system --set
ln -sfn /nix/var/nix/profiles/system $mountPoint/run/current-system

# Copy the NixOS/Nixpkgs sources to the target as the initial contents of the NixOS channel.
mkdir -m 0755 -p $mountPoint/nix/var/nix/profiles
mkdir -m 1777 -p $mountPoint/nix/var/nix/profiles/per-user
mkdir -m 0755 -p $mountPoint/nix/var/nix/profiles/per-user/root
install -m 0755 -d $mountPoint/nix/var/nix/profiles
install -m 1777 -d $mountPoint/nix/var/nix/profiles/per-user
install -m 0755 -d $mountPoint/nix/var/nix/profiles/per-user/root

if [ -z "$noChannelCopy" ] && [ -n "$channel" ]; then
echo "copying channel..."
nix-env --option build-use-substitutes false "${extraBuildFlags[@]}" -p $mountPoint/nix/var/nix/profiles/per-user/root/channels --set "$channel" --quiet
fi
mkdir -m 0700 -p $mountPoint/root/.nix-defexpr
install -m 0700 -d $mountPoint/root/.nix-defexpr
ln -sfn /nix/var/nix/profiles/per-user/root/channels $mountPoint/root/.nix-defexpr/channels

# Mark the target as a NixOS installation, otherwise switch-to-configuration will chicken out.
touch $mountPoint/etc/NIXOS

2 changes: 0 additions & 2 deletions nixos/modules/services/search/solr.nix
Expand Up @@ -15,8 +15,6 @@ let
sha256 = "01mzvh53wrs1p2ym765jwd00gl6kn8f9k3nhdrnhdqr8dhimfb2p";
};

buildPhases = [ "unpackPhase" "installPhase" ];

installPhase = ''
mkdir -p $out/lib
cp common/lib/*.jar $out/lib/
Expand Down
8 changes: 6 additions & 2 deletions nixos/modules/tasks/network-interfaces.nix
Expand Up @@ -923,7 +923,9 @@ in
assertions =
(flip map interfaces (i: {
assertion = i.subnetMask == null;
message = "The networking.interfaces.${i.name}.subnetMask option is defunct. Use prefixLength instead.";
message = ''
The networking.interfaces."${i.name}".subnetMask option is defunct. Use prefixLength instead.
'';
})) ++ (flip map interfaces (i: {
# With the linux kernel, interface name length is limited by IFNAMSIZ
# to 16 bytes, including the trailing null byte.
Expand All @@ -934,7 +936,9 @@ in
'';
})) ++ (flip map slaveIfs (i: {
assertion = i.ip4 == [ ] && i.ipAddress == null && i.ip6 == [ ] && i.ipv6Address == null;
message = "The networking.interfaces.${i.name} must not have any defined ips when it is a slave.";
message = ''
The networking.interfaces."${i.name}" must not have any defined ips when it is a slave.
'';
})) ++ [
{
assertion = cfg.hostId == null || (stringLength cfg.hostId == 8 && isHexString cfg.hostId);
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/qsynth/default.nix
Expand Up @@ -13,7 +13,7 @@ stdenv.mkDerivation rec {

meta = with stdenv.lib; {
description = "Fluidsynth GUI";
homepage = http://sourceforge.net/projects/qsynth;
homepage = https://sourceforge.net/projects/qsynth;
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.goibhniu ];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/display-managers/slim/default.nix
Expand Up @@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_LINK = "-lXmu";

meta = {
homepage = http://sourceforge.net/projects/slim.berlios/; # berlios shut down; I found no replacement yet
homepage = https://sourceforge.net/projects/slim.berlios/; # berlios shut down; I found no replacement yet
platforms = stdenv.lib.platforms.linux;
};
}
2 changes: 1 addition & 1 deletion pkgs/applications/editors/nedit/default.nix
Expand Up @@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
'';

meta = with stdenv.lib; {
homepage = http://sourceforge.net/projects/nedit;
homepage = https://sourceforge.net/projects/nedit;
platforms = with platforms; linux ++ darwin;
};
}
7 changes: 4 additions & 3 deletions pkgs/applications/editors/rstudio/default.nix
@@ -1,5 +1,6 @@
{ stdenv, fetchurl, fetchpatch, makeDesktopItem, cmake, boost, zlib, openssl,
R, qt5, libuuid, hunspellDicts, unzip, ant, jdk, gnumake, makeWrapper, pandoc
{ stdenv, fetchurl, fetchpatch, makeDesktopItem, cmake, boost, zlib, openssl
, R, qtbase, qtwebkit, qtwebchannel, libuuid, hunspellDicts, unzip, ant, jdk
, gnumake, makeWrapper, pandoc
}:

let
Expand All @@ -12,7 +13,7 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ cmake unzip ant jdk makeWrapper pandoc ];

buildInputs = [ boost zlib openssl R qt5.full qt5.qtwebkit qt5.qtwebchannel libuuid ];
buildInputs = [ boost zlib openssl R qtbase qtwebkit qtwebchannel libuuid ];

src = fetchurl {
url = "https://github.com/rstudio/rstudio/archive/v${version}.tar.gz";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/xzgv/default.nix
Expand Up @@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
mkdir -p $out/share/{app-install/desktop,applications,info,pixmaps}
'';
meta = with stdenv.lib; {
homepage = http://sourceforge.net/projects/xzgv/;
homepage = https://sourceforge.net/projects/xzgv/;
description = "Picture viewer for X with a thumbnail-based selector";
license = licenses.gpl2;
maintainers = [ maintainers.womfoo ];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/kde/fetch.sh
@@ -1 +1 @@
WGET_ARGS=( https://download.kde.org/stable/applications/17.08.2/ -A '*.tar.xz' )
WGET_ARGS=( https://download.kde.org/stable/applications/17.08.3/ -A '*.tar.xz' )

0 comments on commit 8559b6d

Please sign in to comment.