Merge branch 'staging-next' into staging

Commits from master, conflict resolutions, etc.
This commit is contained in:
Vladimír Čunát
2018-08-13 20:57:50 +02:00
368 changed files with 5460 additions and 6226 deletions

View File

@@ -19,5 +19,6 @@ stdenv.mkDerivation {
homepage = http://emma.sourceforge.net/;
description = "A code coverage tool for Java";
platforms = stdenv.lib.platforms.unix;
license = stdenv.lib.licenses.cpl10;
};
}

View File

@@ -39,5 +39,6 @@ stdenv.mkDerivation rec {
homepage = http://findbugs.sourceforge.net/;
maintainers = with maintainers; [ pSub ];
platforms = with platforms; unix;
license = licenses.lgpl3;
};
}

View File

@@ -5,7 +5,7 @@
# Also, don't clean up environment variables.
, enableNixHacks ? false
# Apple dependencies
, libcxx, CoreFoundation, CoreServices, Foundation
, cctools, clang, libcxx, CoreFoundation, CoreServices, Foundation
}:
let
@@ -75,7 +75,34 @@ stdenv.mkDerivation rec {
'';
postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isDarwin ''
# Disable Bazel's Xcode toolchain detection which would configure compilers
# and linkers from Xcode instead of from PATH
export BAZEL_USE_CPP_ONLY_TOOLCHAIN=1
# Framework search paths aren't added by bintools hook
# https://github.com/NixOS/nixpkgs/pull/41914
export NIX_LDFLAGS="$NIX_LDFLAGS -F${CoreFoundation}/Library/Frameworks -F${CoreServices}/Library/Frameworks -F${Foundation}/Library/Frameworks"
# libcxx includes aren't added by libcxx hook
# https://github.com/NixOS/nixpkgs/pull/41589
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -isystem ${libcxx}/include/c++/v1"
# don't use system installed Xcode to run clang, use Nix clang instead
sed -i -e "s;/usr/bin/xcrun clang;${clang}/bin/clang $NIX_CFLAGS_COMPILE $NIX_LDFLAGS -framework CoreFoundation;g" \
scripts/bootstrap/compile.sh \
src/tools/xcode/realpath/BUILD \
src/tools/xcode/stdredirect/BUILD \
tools/osx/BUILD
# clang installed from Xcode has a compatibility wrapper that forwards
# invocations of gcc to clang, but vanilla clang doesn't
sed -i -e 's;_find_generic(repository_ctx, "gcc", "CC", overriden_tools);_find_generic(repository_ctx, "clang", "CC", overriden_tools);g' tools/cpp/unix_cc_configure.bzl
sed -i -e 's;/usr/bin/libtool;${cctools}/bin/libtool;g' tools/cpp/unix_cc_configure.bzl
wrappers=( tools/cpp/osx_cc_wrapper.sh tools/cpp/osx_cc_wrapper.sh.tpl )
for wrapper in "''${wrappers[@]}"; do
sed -i -e "s,/usr/bin/install_name_tool,${cctools}/bin/install_name_tool,g" $wrapper
done
'' + ''
find src/main/java/com/google/devtools -type f -print0 | while IFS="" read -r -d "" path; do
substituteInPlace "$path" \
@@ -119,7 +146,7 @@ stdenv.mkDerivation rec {
makeWrapper
which
customBash
] ++ lib.optionals (stdenv.isDarwin) [ libcxx CoreFoundation CoreServices Foundation ];
] ++ lib.optionals (stdenv.isDarwin) [ cctools clang libcxx CoreFoundation CoreServices Foundation ];
# If TMPDIR is in the unpack dir we run afoul of blaze's infinite symlink
# detector (see com.google.devtools.build.lib.skyframe.FileFunction).

View File

@@ -84,5 +84,6 @@ stdenv.mkDerivation rec {
description = "Cross-Platform Makefile Generator";
platforms = if useQt4 then qt4.meta.platforms else stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ ];
license = stdenv.lib.licenses.bsd3;
};
}

View File

@@ -126,5 +126,6 @@ stdenv.mkDerivation rec {
description = "Cross-Platform Makefile Generator";
platforms = if useQt4 then qt4.meta.platforms else platforms.all;
maintainers = with maintainers; [ ttuegel lnl7 ];
license = licenses.bsd3;
};
}

View File

@@ -36,5 +36,6 @@ stdenv.mkDerivation {
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.the-kenny ];
license = stdenv.lib.licenses.asl20;
};
}

View File

@@ -122,5 +122,6 @@ stdenv.mkDerivation {
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ gleber tazjin ];
license = stdenv.lib.licenses.asl20;
};
}

View File

@@ -11,6 +11,10 @@ stdenv.mkDerivation rec {
sha256 = "1zi16pl7sqn1aa8b7zqm9qnd9vjqyfywqm8s6iap4clf86l7kss2";
};
patches = [
./glibc-2.27-glob.patch
];
buildInputs = [ readline ];
meta = {

View File

@@ -0,0 +1,34 @@
diff --git a/glob/glob.c b/glob/glob.c
index f3911bcd861..6cb76e8e162 100644
--- a/glob/glob.c
+++ b/glob/glob.c
@@ -208,29 +208,8 @@ my_realloc (p, n)
#endif /* __GNU_LIBRARY__ || __DJGPP__ */
-#if !defined __alloca && !defined __GNU_LIBRARY__
-
-# ifdef __GNUC__
-# undef alloca
-# define alloca(n) __builtin_alloca (n)
-# else /* Not GCC. */
-# ifdef HAVE_ALLOCA_H
-# include <alloca.h>
-# else /* Not HAVE_ALLOCA_H. */
-# ifndef _AIX
-# ifdef WINDOWS32
-# include <malloc.h>
-# else
-extern char *alloca ();
-# endif /* WINDOWS32 */
-# endif /* Not _AIX. */
-# endif /* sparc or HAVE_ALLOCA_H. */
-# endif /* GCC. */
-
# define __alloca alloca
-#endif
-
#ifndef __GNU_LIBRARY__
# define __stat stat
# ifdef STAT_MACROS_BROKEN

View File

@@ -1,15 +1,17 @@
{ stdenv, fetchurl, python2 }:
{ stdenv, fetchFromGitLab, python, ensureNewerSourcesForZipFilesHook }:
stdenv.mkDerivation rec {
name = "waf-${version}";
version = "2.0.6";
version = "2.0.10";
src = fetchurl {
url = "https://waf.io/waf-${version}.tar.bz2";
sha256 = "1wyl0jl10i0p2rj49sig5riyppgkqlkqmbvv35d5bqxri3y4r38q";
src = fetchFromGitLab {
owner = "ita1024";
repo = "waf";
rev = name;
sha256 = "12p5myq72r5qg7wp2gwbnyvh6lzzcrwp9h3dw194x38g52m0prc7";
};
buildInputs = [ python2 ];
buildInputs = [ python ensureNewerSourcesForZipFilesHook ];
configurePhase = ''
python waf-light configure
@@ -23,7 +25,7 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; {
description = "Meta build system";
homepage = "https://waf.io/";
homepage = https://waf.io;
license = licenses.bsd3;
platforms = platforms.all;
maintainers = with maintainers; [ vrthra ];

View File

@@ -1,22 +1,18 @@
{ stdenv, python }:
{ stdenv, python3Packages }:
let
inherit (python.pkgs) buildPythonApplication fetchPypi;
in
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "Flootty";
version = "3.2.1";
version = "3.2.2";
src = fetchPypi {
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "0vjwl6g1bwm6jwp9wjla663cm831zf0rc9361mvpn4imdsfz7hxs";
sha256 = "0gfl143ly81pmmrcml91yr0ypvwrs5q4s1sfdc0l2qkqpy233ih7";
};
meta = with stdenv.lib; {
description = "A collaborative terminal. In practice, it's similar to a shared screen or tmux session";
homepage = "https://floobits.com/help/flootty";
license = licenses.asl20;
maintainers = with maintainers; [ sellout ];
maintainers = with maintainers; [ sellout enzime ];
};
}

View File

@@ -8,32 +8,12 @@ buildGoPackage rec {
subPackages = [ "goagen" ];
src = fetchFromGitHub {
rev = "v${version}";
owner = "goadesign";
repo = "goa";
rev = "v${version}";
sha256 = "13401jf907z3qh11h9clb3z0i0fshwkmhx11fq9z6vx01x8x2in1";
};
buildInputs = [ makeWrapper ];
allowGoReference = true;
outputs = [ "out" ];
preInstall = ''
export bin=$out
'';
postInstall = ''
# goagen needs GOPATH to be set
wrapProgram $out/bin/goagen \
--prefix GOPATH ":" $out/share/go
# and it needs access to all its dependancies
mkdir -p $out/share/go
cp -Rv $NIX_BUILD_TOP/go/{pkg,src} $out/share/go/
'';
goDeps = ./deps.nix;
meta = with stdenv.lib; {

View File

@@ -2,14 +2,14 @@
buildGoPackage rec {
name = "hcloud-${version}";
version = "1.5.0";
version = "1.6.0";
goPackagePath = "github.com/hetznercloud/cli";
src = fetchFromGitHub {
owner = "hetznercloud";
repo = "cli";
rev = "v${version}";
sha256 = "1pbfa977ihqn7j3ynyqghxjw0wmq0vgha4lsshdpf5xr2n3w0r8l";
sha256 = "0iswy8xjqvshwk9w2vz3miph953qdh21xga9hl6aili84x25xzbx";
};
buildFlagsArray = [ "-ldflags=" "-w -X github.com/hetznercloud/cli/cli.Version=${version}" ];

View File

@@ -0,0 +1,38 @@
{ stdenv, lib, fetchFromGitHub, kubectl, makeWrapper }:
with lib;
stdenv.mkDerivation rec {
name = "kubectx";
version = "0.5.1";
src = fetchFromGitHub {
owner = "ahmetb";
repo = "${name}";
rev = "v${version}";
sha256 = "1bmmaj5fffx4hy55l6x4vl5gr9rp2yhg4vs5b9sya9rjvdkamdx5";
};
buildInputs = [ makeWrapper ];
dontBuild = true;
doCheck = false;
installPhase = ''
mkdir -p $out/bin
cp kubectx $out/bin
cp kubens $out/bin
for f in $out/bin/*; do
wrapProgram $f --prefix PATH : ${makeBinPath [ kubectl ]}
done
'';
meta = {
description = "Fast way to switch between clusters and namespaces in kubectl!";
license = licenses.asl20;
homepage = https://github.com/ahmetb/kubectx;
maintainers = with maintainers; [ periklis ];
platforms = with platforms; unix;
};
}

View File

@@ -30,13 +30,13 @@ let
in stdenv.mkDerivation rec {
name = "nwjs-${version}";
version = "0.23.6";
version = "0.32.1";
src = fetchurl {
url = "https://dl.nwjs.io/v${version}/nwjs-v${version}-linux-${bits}.tar.gz";
sha256 = if bits == "x64" then
"0ppyjspdvacarhdn4xd5i1pqgmf4z1bxnh1cry780489h25rcjgj" else
"0c0j73vnzhsry5rdx41d954a29jmjnvzli728cfbjybfr51zdybg";
"b96fc5af62adf0567cc376c6b90cc401c9216bb01eb4767189208a29fbae5e5b" else
"0a3b712abfa0c3e7e808b1d08ea5d53375a71060e7d144fdcb58c4fe88fa2250";
};
phases = [ "unpackPhase" "installPhase" ];

View File

@@ -87,5 +87,6 @@ in stdenv.mkDerivation rec {
homepage = http://opam.ocamlpro.com/;
maintainers = [ maintainers.henrytill ];
platforms = platforms.all;
license = licenses.lgpl21Plus;
};
}

View File

@@ -20,6 +20,7 @@ stdenv.mkDerivation {
walk parse trees.
'';
homepage = http://www.antlr.org/;
license = licenses.bsd3;
platforms = platforms.unix;
};
}

View File

@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
};
unpackPhase = "true";
installPhase = ''
mkdir -p "$out"/{lib/antlr,bin}
cp "$src" "$out/lib/antlr/antlr-${version}-complete.jar"
@@ -33,6 +33,7 @@ stdenv.mkDerivation rec {
walk parse trees.
'';
homepage = http://www.antlr.org/;
license = licenses.bsd3;
platforms = platforms.linux ++ platforms.darwin;
};
}

View File

@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
};
unpackPhase = "true";
installPhase = ''
mkdir -p "$out"/{lib/antlr,bin}
cp "$src" "$out/lib/antlr/antlr-${version}-complete.jar"
@@ -33,6 +33,7 @@ stdenv.mkDerivation rec {
walk parse trees.
'';
homepage = http://www.antlr.org/;
license = licenses.bsd3;
platforms = platforms.linux;
};
}

View File

@@ -1,41 +1,81 @@
{stdenv, fetchurl, jre}:
{ stdenv, fetchurl, jre
, fetchFromGitHub, cmake, ninja, pkgconfig, libuuid, darwin }:
stdenv.mkDerivation rec {
name = "antlr-${version}";
let
version = "4.7.1";
src = fetchurl {
url ="https://www.antlr.org/download/antlr-${version}-complete.jar";
sha256 = "1236gwnzchama92apb2swmklnypj01m7bdwwfvwvl8ym85scw7gl";
source = fetchFromGitHub {
owner = "antlr";
repo = "antlr4";
rev = version;
sha256 = "1xb4d9bd4hw406v85s64gg8gwcrrsrw171vhga1gz4xj6pzfwxz7";
};
unpackPhase = "true";
installPhase = ''
mkdir -p "$out"/{share/java,bin}
cp "$src" "$out/share/java/antlr-${version}-complete.jar"
runtime = {
cpp = stdenv.mkDerivation {
name = "antlr-runtime-cpp-${version}";
src = source;
echo "#! ${stdenv.shell}" >> "$out/bin/antlr"
echo "'${jre}/bin/java' -cp '$out/share/java/antlr-${version}-complete.jar:$CLASSPATH' -Xmx500M org.antlr.v4.Tool \"\$@\"" >> "$out/bin/antlr"
echo "#! ${stdenv.shell}" >> "$out/bin/grun"
echo "'${jre}/bin/java' -cp '$out/share/java/antlr-${version}-complete.jar:$CLASSPATH' org.antlr.v4.gui.TestRig \"\$@\"" >> "$out/bin/grun"
outputs = [ "out" "dev" "doc" ];
chmod a+x "$out/bin/antlr" "$out/bin/grun"
ln -s "$out/bin/antlr"{,4}
'';
nativeBuildInputs = [ cmake ninja pkgconfig ];
buildInputs = stdenv.lib.optional stdenv.isLinux libuuid
++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.CoreFoundation;
inherit jre;
postUnpack = ''
export sourceRoot=$sourceRoot/runtime/Cpp
'';
meta = with stdenv.lib; {
description = "Powerful parser generator";
longDescription = ''
ANTLR (ANother Tool for Language Recognition) is a powerful parser
generator for reading, processing, executing, or translating structured
text or binary files. It's widely used to build languages, tools, and
frameworks. From a grammar, ANTLR generates a parser that can build and
walk parse trees.
meta = with stdenv.lib; {
description = "C++ target for ANTLR 4";
homepage = http://www.antlr.org/;
license = licenses.bsd3;
platforms = platforms.unix;
};
};
};
antlr = stdenv.mkDerivation {
name = "antlr-${version}";
src = fetchurl {
url ="https://www.antlr.org/download/antlr-${version}-complete.jar";
sha256 = "1236gwnzchama92apb2swmklnypj01m7bdwwfvwvl8ym85scw7gl";
};
unpackPhase = "true";
installPhase = ''
mkdir -p "$out"/{share/java,bin}
cp "$src" "$out/share/java/antlr-${version}-complete.jar"
echo "#! ${stdenv.shell}" >> "$out/bin/antlr"
echo "'${jre}/bin/java' -cp '$out/share/java/antlr-${version}-complete.jar:$CLASSPATH' -Xmx500M org.antlr.v4.Tool \"\$@\"" >> "$out/bin/antlr"
echo "#! ${stdenv.shell}" >> "$out/bin/grun"
echo "'${jre}/bin/java' -cp '$out/share/java/antlr-${version}-complete.jar:$CLASSPATH' org.antlr.v4.gui.TestRig \"\$@\"" >> "$out/bin/grun"
chmod a+x "$out/bin/antlr" "$out/bin/grun"
ln -s "$out/bin/antlr"{,4}
'';
homepage = http://www.antlr.org/;
platforms = platforms.unix;
inherit jre;
passthru = {
inherit runtime;
jarLocation = "${antlr}/share/java/antlr-${version}-complete.jar";
};
meta = with stdenv.lib; {
description = "Powerful parser generator";
longDescription = ''
ANTLR (ANother Tool for Language Recognition) is a powerful parser
generator for reading, processing, executing, or translating structured
text or binary files. It's widely used to build languages, tools, and
frameworks. From a grammar, ANTLR generates a parser that can build and
walk parse trees.
'';
homepage = http://www.antlr.org/;
license = licenses.bsd3;
platforms = platforms.unix;
};
};
}
in antlr

View File

@@ -34,6 +34,7 @@ in stdenv.mkDerivation rec {
it is intended as a replacement for the venerable 'isql' program supplied
by Sybase.
'';
license = licenses.gpl2;
homepage = https://sourceforge.net/projects/sqsh/;
platforms = platforms.all;
};

View File

@@ -22,5 +22,6 @@ buildGoPackage rec {
meta = {
description = "Proxy for for simulating network conditions.";
maintainers = with lib.maintainers; [ avnik ];
license = lib.licenses.mit;
};
}

View File

@@ -2,11 +2,11 @@
let
name = "wp-cli-${version}";
version = "1.5.1";
version = "2.0.0";
src = fetchurl {
url = "https://github.com/wp-cli/wp-cli/releases/download/v${version}/${name}.phar";
sha256 = "1lnjbl6rcv32g6akj4552ncyqmbsawmx1dnbmxr0rjj7wr8484f1";
sha256 = "1s8pv8vdjwiwknpwsxc59l1zxc2np7nrp6bjd0s8jwsrv5fgjzsp";
};
completion = fetchurl {
@@ -36,9 +36,7 @@ in stdenv.mkDerivation rec {
inherit name version;
buildCommand = ''
mkdir -p $out/{bin,share/bash-completion/completions}
ln -s ${bin} $out/bin/wp
install -Dm755 ${bin} $out/bin/wp
install -Dm644 ${completion} $out/share/bash-completion/completions/wp
# this is a very basic run test