Merge branch 'master' into es6

This commit is contained in:
Bas van Dijk
2018-08-23 23:41:27 +02:00
1746 changed files with 48873 additions and 43106 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, perl, autoconf, makeWrapper }:
{ stdenv, fetchurl, perl, autoconf }:
stdenv.mkDerivation rec {
name = "automake-1.11.6";
@@ -17,11 +17,12 @@ stdenv.mkDerivation rec {
patches = [ ./fix-test-autoconf-2.69.patch ./fix-perl-5.26.patch ];
buildInputs = [perl autoconf makeWrapper];
buildInputs = [ perl autoconf ];
# Disable indented log output from Make, otherwise "make.test" will
# fail.
preCheck = "unset NIX_INDENT_MAKE";
doCheck = false; # takes _a lot_ of time, fails 11 of 782 tests
# Don't fixup "#! /bin/sh" in Libtool, otherwise it will use the
# "fixed" path in generated files!

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, perl, autoconf, doCheck ? false }:
{ stdenv, fetchurl, perl, autoconf }:
stdenv.mkDerivation rec {
name = "automake-1.16.1";
@@ -16,7 +16,8 @@ stdenv.mkDerivation rec {
# Disable indented log output from Make, otherwise "make.test" will
# fail.
preCheck = "unset NIX_INDENT_MAKE";
inherit doCheck;
doCheck = false; # takes _a lot_ of time, fails 3 out of 2698 tests, all seem to be related to paths
doInstallCheck = false; # runs the same thing, fails the same tests
# The test suite can run in parallel.
enableParallelBuilding = true;

View File

@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
sha256 = "15m1w1qad3dj7r8n5ng1qqcaiyx1gyd6hnc3p2apgjllccdp77qg";
};
configureFlags = stdenv.lib.optionalString docSupport "--enable-doc";
configureFlags = stdenv.lib.optionals docSupport "--enable-doc";
buildInputs = [ yacc flex libusb libelf libftdi1 readline ]
++ stdenv.lib.optionals docSupport [ texLive texinfo texi2html ];

View File

@@ -1,6 +1,6 @@
{ stdenv, buildPackages
, fetchurl, zlib, autoreconfHook264
, hostPlatform, targetPlatform
, hostPlatform, buildPlatform, targetPlatform
, noSysDirs, gold ? true, bison ? null
}:
@@ -121,6 +121,9 @@ stdenv.mkDerivation rec {
doCheck = false; # fails
# else fails with "./sanity.sh: line 36: $out/bin/size: not found"
doInstallCheck = buildPlatform == hostPlatform && hostPlatform == targetPlatform;
enableParallelBuilding = true;
passthru = {

View File

@@ -5,8 +5,8 @@ let
src = fetchFromGitHub {
owner = "cquery-project";
repo = "cquery";
rev = "34b357bc5e873d52d2aa41287c6e138244cea109";
sha256 = "0i34v30cl73485bzpbis539x0iq9whpv0403ca5a9h6vqwnvdn7c";
rev = "e17df5b41e5a687559a0b75dba9c0f1f399c4aea";
sha256 = "06z8bg73jppb4msiqvsjbpz6pawwny831k56w5kcxrjgp22v24s1";
fetchSubmodules = true;
};
@@ -15,7 +15,7 @@ let
in
stdenv.mkDerivation rec {
name = "cquery-${version}";
version = "2018-05-01";
version = "2018-08-08";
inherit src;
@@ -25,6 +25,7 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DSYSTEM_CLANG=ON"
"-DCLANG_CXX=ON"
"-DCMAKE_OSX_DEPLOYMENT_TARGET=10.12"
];
shell = stdenv.shell;
@@ -47,6 +48,10 @@ stdenv.mkDerivation rec {
installCheckPhase = ''
pushd ${src}
$out/bin/cquery --ci --test-unit
# The integration tests have to be disabled because cquery ignores `--init`
# if they are invoked, which means it won't find the system includes.
#$out/bin/cquery --ci --test-index
'';
meta = with stdenv.lib; {

View File

@@ -1,6 +1,6 @@
#! @shell@ -e
initString="--init={\"extraClangArguments\": [@standard_library_includes@"
initString="--init={\"cacheDirectory\": \"/tmp/cquery\", \"extraClangArguments\": [@standard_library_includes@"
if [ "${NIX_CFLAGS_COMPILE}" != "" ]; then
read -a cflags_array <<< ${NIX_CFLAGS_COMPILE}

View File

@@ -3,14 +3,14 @@
}:
stdenv.mkDerivation rec {
name = "cscope-15.8b";
name = "cscope-15.9";
src = fetchurl {
url = "mirror://sourceforge/cscope/${name}.tar.gz";
sha256 = "1byk29rcpyygrnr03h5j3y8j0aqxldd9dr5ihi9q982sy28x12a8";
sha256 = "0ngiv4aj3rr35k3q3wjx0y19gh7i1ydqa0cqip6sjwd8fph5ll65";
};
configureFlags = "--with-ncurses=${ncurses.dev}";
configureFlags = [ "--with-ncurses=${ncurses.dev}" ];
buildInputs = [ ncurses ];
nativeBuildInputs = stdenv.lib.optional emacsSupport emacs;

View File

@@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
sha256 = "0p5nx387857w3v2jbgvps2p6mlm0chajcdw5sfrddcglsxkwvmis";
};
buildInputs = [motif ncurses libX11 libXt];
configureFlags = "--with-x";
configureFlags = [ "--with-x" ];
patches = [ ./gcc44.patch ];

View File

@@ -1,12 +1,9 @@
{ stdenv, fetchurl, ncurses
, withLibrary ? false, libtool
, unicodeSupport ? true
, enableShared ? !stdenv.isDarwin
}:
let optStr = stdenv.lib.optionalString;
buildShared = !stdenv.isDarwin;
in
assert withLibrary -> libtool != null;
assert unicodeSupport -> ncurses.unicode && ncurses != null;
@@ -24,14 +21,14 @@ stdenv.mkDerivation rec {
buildInputs = [ ncurses ];
configureFlags = ''
--disable-rpath-hacks
${optStr withLibrary "--with-libtool"}
--with-libtool-opts=${optStr buildShared "-shared"}
--with-ncurses${optStr unicodeSupport "w"}
'';
configureFlags = [
"--disable-rpath-hacks"
(stdenv.lib.withFeature withLibrary "libtool")
"--with-ncurses${stdenv.lib.optionalString unicodeSupport "w"}"
"--with-libtool-opts=${stdenv.lib.optionalString enableShared "-shared"}"
];
installTargets = "install${optStr withLibrary "-full"}";
installTargets = "install${stdenv.lib.optionalString withLibrary "-full"}";
meta = {
homepage = http://invisible-island.net/dialog/dialog.html;

View File

@@ -10,7 +10,11 @@ stdenv.mkDerivation rec {
sha256 = "1zq0l12k64hrbjmdjc4llrad96c25i427hpma1id9nk87w9qqvdp";
};
patches = ./debug-info-from-env.patch;
patches = [ ./debug-info-from-env.patch ];
postPatch = ''
patchShebangs tests
'';
hardeningDisable = [ "format" ];
@@ -35,7 +39,7 @@ stdenv.mkDerivation rec {
#
# I wrote this testing for the nanonote.
buildPhase = if stdenv.hostPlatform == stdenv.buildPlatform then null else ''
buildPhase = stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
pushd libebl
make
popd
@@ -50,7 +54,7 @@ stdenv.mkDerivation rec {
popd
'';
installPhase = if stdenv.hostPlatform == stdenv.buildPlatform then null else ''
installPhase = stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
pushd libelf
make install
popd
@@ -63,6 +67,9 @@ stdenv.mkDerivation rec {
cp version.h $out/include
'';
doCheck = false; # fails 3 out of 174 tests
doInstallCheck = false; # fails 70 out of 174 tests
meta = {
homepage = https://sourceware.org/elfutils/;
description = "A set of utilities to handle ELF objects";

View File

@@ -18,7 +18,7 @@
let
basename = "gdb-${version}";
version = "8.1";
version = "8.1.1";
in
assert targetPlatform.isHurd -> mig != null && hurd != null;
@@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
src = fetchurl {
url = "mirror://gnu/gdb/${basename}.tar.xz";
sha256 = "0d2bpqk58fqlx21rbnk8mbcjlggzc9kb5sjirrfrrrjq70ka0qdg";
sha256 = "0g6hv9xk12aa58w77fydaldqr9a6b0a6bnwsq87jfc6lkcbc7p4p";
};
patches = [ ./debug-info-from-env.patch ]

View File

@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
doCheck = false;
configureFlags = "--with-syscmd-shell=${stdenv.shell}";
configureFlags = [ "--with-syscmd-shell=${stdenv.shell}" ];
# Upstream is aware of it; it may be in the next release.
patches = [ ./s_isdir.patch ] ++ stdenv.lib.optional hostPlatform.isDarwin stdenv.secure-format-patch;

View File

@@ -3,11 +3,18 @@
, gitAndTools, mercurial, darcs, subversion, bazaar, openssl, bzip2, libxslt
, guile, perl, postgresql, nukeReferences, git, boehmgc
, docbook_xsl, openssh, gnused, coreutils, findutils, gzip, lzma, gnutar
, rpm, dpkg, cdrkit, pixz }:
, rpm, dpkg, cdrkit, pixz, lib, fetchpatch, boost, autoreconfHook
}:
with stdenv;
let
isGreaterNix20 = with lib.versions;
let
inherit (nix) version;
inherit (lib) toInt;
in major version == "2" && toInt (minor version) >= 1 || toInt (major version) > 2;
perlDeps = buildEnv {
name = "hydra-perl-deps";
paths = with perlPackages;
@@ -40,6 +47,7 @@ let
FileSlurp
IOCompress
IPCRun
JSON
JSONAny
JSONXS
LWP
@@ -63,15 +71,15 @@ let
};
in releaseTools.nixBuild rec {
name = "hydra-${version}";
version = "2017-11-21";
version = "2018-08-07";
inherit stdenv;
src = fetchFromGitHub {
owner = "NixOS";
repo = "hydra";
rev = "b7bc4384b7b471d1ddf892cb03f16189a66d5a0d";
sha256 = "05g37z3ilazzqa5rqj5zljndwxjbvpc18xibh6jlwjwpvg3kpbbh";
rev = "4dca8fe14d3f782bdf927f37efce722acefffff3";
sha256 = "1yas4psmvfp7lhcp81ia2sy93b78j9hiw9a6n3q2m1a616hwpm25";
};
buildInputs =
@@ -80,17 +88,24 @@ in releaseTools.nixBuild rec {
guile # optional, for Guile + Guix support
perlDeps perl nix
postgresql # for running the tests
];
] ++ lib.optionals isGreaterNix20 [ boost ];
hydraPath = lib.makeBinPath (
[ sqlite subversion openssh nix coreutils findutils pixz
gzip bzip2 lzma gnutar unzip git gitAndTools.topGit mercurial darcs gnused bazaar
] ++ lib.optionals stdenv.isLinux [ rpm dpkg cdrkit ] );
postUnpack = ''
# Clean up when building from a working tree.
(cd $sourceRoot && (git ls-files -o --directory | xargs -r rm -rfv)) || true
'';
nativeBuildInputs = [ autoreconfHook ];
# adds a patch which ensures compatibility with the API of Nix 2.0.
# it has been reverted in https://github.com/NixOS/hydra/commit/162d671c48a418bd10a8a171ca36787ef3695a44,
# for Nix 2.1/unstable compatibility. Reapplying helps if Nix 2.0 is used to keep the build functional.
patches = lib.optionals (!isGreaterNix20) [
(fetchpatch {
url = "https://github.com/NixOS/hydra/commit/08de434bdd0b0a22abc2081be6064a6c846d3920.patch";
sha256 = "0kz77njp5ynn9l81g3q8zrryvnsr06nk3iw0a60187wxqzf5fmf8";
})
];
configureFlags = [ "--with-docbook-xsl=${docbook_xsl}/xml/xsl/docbook" ];
@@ -99,8 +114,6 @@ in releaseTools.nixBuild rec {
PERL5LIB=$(pwd)/src/lib:$PERL5LIB;
'';
preConfigure = "autoreconf -vfi";
enableParallelBuilding = true;
preCheck = ''
@@ -130,6 +143,6 @@ in releaseTools.nixBuild rec {
description = "Nix-based continuous build system";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ domenkozar ];
maintainers = with maintainers; [ ma27 ];
};
}
}

View File

@@ -1,25 +1,28 @@
{ stdenv, fetchurl, pkgconfig, libdrm, libpciaccess, cairo, dri2proto, udev
, libX11, libXext, libXv, libXrandr, glib, bison, libunwind, python3, kmod
, procps, utilmacros, gnome2 }:
, procps, utilmacros, gnome2, openssl }:
stdenv.mkDerivation rec {
name = "intel-gpu-tools-1.22";
name = "intel-gpu-tools-${version}";
version = "1.23";
src = fetchurl {
url = "https://xorg.freedesktop.org/archive/individual/app/${name}.tar.xz";
sha256 = "0p4swf9577p6hzglw1lh2sz63wjkk37b7691saj2qw8ha7fc2rix";
url = "https://xorg.freedesktop.org/archive/individual/app/igt-gpu-tools-${version}.tar.xz";
sha256 = "1l4s95m013p2wvddwr4cjqyvsgmc88zxx2887p1fbb1va5n0hjsd";
};
nativeBuildInputs = [ pkgconfig utilmacros ];
buildInputs = [ libdrm libpciaccess cairo dri2proto udev libX11 kmod
libXext libXv libXrandr glib bison libunwind python3 procps
gnome2.gtkdoc ];
gnome2.gtkdoc openssl ];
preConfigure = ''
./autogen.sh
'';
preBuild = ''
patchShebangs tests
patchShebangs debugger/system_routine/pre_cpp.py
substituteInPlace tools/Makefile.am --replace '$(CAIRO_CFLAGS)' '$(CAIRO_CFLAGS) $(GLIB_CFLAGS)'
substituteInPlace tests/Makefile.am --replace '$(CAIRO_CFLAGS)' '$(CAIRO_CFLAGS) $(GLIB_CFLAGS)'

View File

@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
setupHook = [ ./setup-hook.sh ];
#doCheck = true; # problems when loading libc.so.6
doCheck = false; # fails 8 out of 24 tests, problems when loading libc.so.6
meta = {
homepage = https://nixos.org/patchelf.html;

View File

@@ -8,7 +8,12 @@ stdenv.mkDerivation {
sha256 = "0prdld6nbkdlkcgc2r1zp13h2fh8r0mlwxx423dnc695ddlk18b8";
};
makeFlags = "BINDIR=$(out)/bin MANDIR=$(out)/share/man";
postPatch = ''
substituteInPlace Makefile \
--replace ginstall install
'';
makeFlags = [ "BINDIR=$(out)/bin" "MANDIR=$(out)/share/man" ];
preInstall = ''
mkdir -p $out/bin
@@ -17,6 +22,8 @@ stdenv.mkDerivation {
hardeningDisable = [ "format" ];
doCheck = false; # "check" target is probably meant to do "installcheck" or something
meta = {
description = "Parse formatted man pages and man page source from most flavors of UNIX and converts them to HTML, ASCII, TkMan, DocBook, and other formats";
license = "artistic";

View File

@@ -10,8 +10,9 @@ stdenv.mkDerivation rec {
buildInputs = [ boost libtool groff ghostscript libgcrypt ];
configureFlags = stdenv.lib.optionalString
(libgcrypt == null) "--without-gcrypt";
configureFlags = [
(stdenv.lib.optional (libgcrypt == null) "--without-gcrypt")
];
meta = with stdenv.lib; {
description = "Collection of powerful tools for manipulating EPROM load files";

View File

@@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
name = "strace-${version}";
version = "4.23";
version = "4.24";
src = fetchurl {
url = "https://strace.io/files/${version}/${name}.tar.xz";
sha256 = "1bcsq2gbpcb81ayryvn56a6kjx42fc21la6qgds35n0xbybacq3q";
sha256 = "0d061cdzk6a1822ds4wpqxg10ny27mi4i9zjmnsbz8nz3vy5jkhz";
};
depsBuildBuild = [ buildPackages.stdenv.cc ];
@@ -16,6 +16,10 @@ stdenv.mkDerivation rec {
configureFlags = stdenv.lib.optional (stdenv.hostPlatform.isAarch64 || stdenv.hostPlatform.isRiscV) "--enable-mpers=check";
# fails 1 out of 523 tests with
# "strace-k.test: failed test: ../../strace -e getpid -k ../stack-fcall output mismatch"
doCheck = false;
meta = with stdenv.lib; {
homepage = https://strace.io/;
description = "A system call tracer for Linux";

View File

@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoconf automake libtool bison ];
buildInputs = [ pcre ];
configureFlags = "--without-tcl";
configureFlags = [ "--without-tcl" ];
postPatch = ''
# Disable ccache documentation as it need yodl

View File

@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoconf automake libtool bison ];
buildInputs = [ pcre ];
configureFlags = "--without-tcl";
configureFlags = [ "--without-tcl" ];
postPatch = ''
# Disable ccache documentation as it need yodl

View File

@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
# 'make check' uses boost and tcl
buildInputs = stdenv.lib.optionals doCheck [ boost tcl ];
configureFlags = "--disable-ccache";
configureFlags = [ "--disable-ccache" ];
meta = {
description = "Interface compiler that connects C/C++ code to higher-level languages";

View File

@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
buildInputs = [ xz.bin ]
++ optionals stdenv.isSunOS [ libiconv gawk ]
++ optionals interactive [ ncurses procps ];
++ optional interactive ncurses;
configureFlags = [ "PERL=${buildPackages.perl}/bin/perl" ]
++ stdenv.lib.optional stdenv.isSunOS "AWK=${gawk}/bin/awk";
@@ -33,6 +33,8 @@ stdenv.mkDerivation rec {
installTargets="install install-tex";
'';
checkInputs = [ procps ];
doCheck = interactive
&& !stdenv.isDarwin
&& !stdenv.isSunOS; # flaky