Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/staging' into compiler-rt
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed May 24, 2018
2 parents 46eeef1 + 33b8830 commit 205fc55
Show file tree
Hide file tree
Showing 447 changed files with 3,603 additions and 3,012 deletions.
4 changes: 2 additions & 2 deletions doc/languages-frameworks/perl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ buildPerlPackage rec {
};

preConfigure = ''
echo "LIB = ${db}/lib" > config.in
echo "INCLUDE = ${db}/include" >> config.in
echo "LIB = ${db.out}/lib" > config.in
echo "INCLUDE = ${db.dev}/include" >> config.in
'';
}
</programlisting>
Expand Down
17 changes: 17 additions & 0 deletions doc/stdenv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1163,6 +1163,14 @@ passthru = {
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><varname>checkInputs</varname>
</term>
<listitem><para>
A list of dependencies used by the phase. This gets included in
<varname>buildInputs</varname> when <varname>doCheck</varname> is set.
</para></listitem>
</varlistentry>
<varlistentry>
<term><varname>makeFlags</varname>
</term>
Expand Down Expand Up @@ -1646,6 +1654,15 @@ set debug-file-directory ~/.nix-profile/lib/debug
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><varname>installCheckInputs</varname>
</term>
<listitem><para>
A list of dependencies used by the phase. This gets included in
<varname>buildInputs</varname> when <varname>doInstallCheck</varname>
is set.
</para></listitem>
</varlistentry>
<varlistentry>
<term><varname>preInstallCheck</varname>
</term>
Expand Down
6 changes: 5 additions & 1 deletion lib/systems/for-meta.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ in rec {
darwin = [ patterns.isDarwin ];
freebsd = [ patterns.isFreeBSD ];
# Should be better, but MinGW is unclear, and HURD is bit-rotted.
gnu = [ { kernel = parse.kernels.linux; abi = parse.abis.gnu; } ];
gnu = [
{ kernel = parse.kernels.linux; abi = parse.abis.gnu; }
{ kernel = parse.kernels.linux; abi = parse.abis.gnueabi; }
{ kernel = parse.kernels.linux; abi = parse.abis.gnueabihf; }
];
illumos = [ patterns.isSunOS ];
linux = [ patterns.isLinux ];
netbsd = [ patterns.isNetBSD ];
Expand Down
15 changes: 13 additions & 2 deletions nixos/modules/services/misc/nix-daemon.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ let
sh = pkgs.runtimeShell;
binshDeps = pkgs.writeReferencesToFile sh;
in
pkgs.runCommand "nix.conf" { extraOptions = cfg.extraOptions; } ''
pkgs.runCommand "nix.conf" { extraOptions = cfg.extraOptions; } (''
${optionalString (!isNix20) ''
extraPaths=$(for i in $(cat ${binshDeps}); do if test -d $i; then echo $i; fi; done)
''}
Expand Down Expand Up @@ -62,7 +62,11 @@ let
''}
$extraOptions
END
'';
'' + optionalString cfg.checkConfig ''
echo "Checking that Nix can read nix.conf..."
ln -s $out ./nix.conf
NIX_CONF_DIR=$PWD ${cfg.package}/bin/nix show-config >/dev/null
'');

in

Expand Down Expand Up @@ -351,6 +355,13 @@ in
'';
};

checkConfig = mkOption {
type = types.bool;
default = true;
description = ''
If enabled (the default), checks that Nix can parse the generated nix.conf.
'';
};
};

};
Expand Down
1 change: 1 addition & 0 deletions nixos/release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ in rec {
tests.flatpak = callTest tests/flatpak.nix {};
tests.firewall = callTest tests/firewall.nix {};
tests.fwupd = callTest tests/fwupd.nix {};
tests.gdk-pixbuf = callTest tests/gdk-pixbuf.nix {};
#tests.gitlab = callTest tests/gitlab.nix {};
tests.gitolite = callTest tests/gitolite.nix {};
tests.gjs = callTest tests/gjs.nix {};
Expand Down
19 changes: 19 additions & 0 deletions nixos/tests/gdk-pixbuf.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# run installed tests
import ./make-test.nix ({ pkgs, ... }: {
name = "gdk-pixbuf";

meta = {
maintainers = pkgs.gdk_pixbuf.meta.maintainers;
};

machine = { pkgs, ... }: {
environment.systemPackages = with pkgs; [ gnome-desktop-testing ];
environment.variables.XDG_DATA_DIRS = [ "${pkgs.gdk_pixbuf.installedTests}/share" ];

virtualisation.memorySize = 4096; # Tests allocate a lot of memory trying to exploit a CVE
};

testScript = ''
$machine->succeed("gnome-desktop-testing-runner");
'';
})
4 changes: 4 additions & 0 deletions pkgs/applications/altcoins/bitcoin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ stdenv.mkDerivation rec{
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
];

# Fails with "This application failed to start because it could not
# find or load the Qt platform plugin "minimal""
doCheck = false;

meta = {
description = "Peer-to-peer electronic cash system";
longDescription= ''
Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/audio/easytag/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ in stdenv.mkDerivation rec {
gsettings-desktop-schemas gnome3.defaultIconTheme
];

doCheck = false; # fails 1 out of 9 tests

passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/graphics/ImageMagick/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ stdenv.mkDerivation rec {
[ libX11 libXext libXt libwebp ]
;

doCheck = false; # fails 6 out of 76 tests

postInstall = ''
(cd "$dev/include" && ln -s ImageMagick* ImageMagick)
moveToOutput "bin/*-config" "$dev"
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/audio/soxr/default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{ stdenv, fetchurl, cmake }:

stdenv.mkDerivation rec {
name = "soxr-0.1.2";
name = "soxr-0.1.3";

src = fetchurl {
url = "mirror://sourceforge/soxr/${name}-Source.tar.xz";
sha256 = "0xf2w3piwz9gfr1xqyrj4k685q5dy53kq3igv663i4f4y4sg9rjl";
sha256 = "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di";
};

outputs = [ "out" "doc" ]; # headers are just two and very small
Expand Down
Loading

0 comments on commit 205fc55

Please sign in to comment.