Merge branch 'master' into staging

This commit is contained in:
John Ericson 2017-09-20 01:39:59 -04:00
commit e9c1f64048
17 changed files with 118 additions and 96 deletions

View File

@ -18,9 +18,9 @@ stdenv.mkDerivation rec {
inherit (common) version src postPatch hardeningDisable enableParallelBuilding meta; inherit (common) version src postPatch hardeningDisable enableParallelBuilding meta;
buildInputs = [ ncurses pkgconfig ] nativeBuildInputs = [ gettext pkgconfig ];
buildInputs = [ ncurses ]
++ stdenv.lib.optionals hostPlatform.isDarwin [ Carbon Cocoa ]; ++ stdenv.lib.optionals hostPlatform.isDarwin [ Carbon Cocoa ];
nativeBuildInputs = [ gettext ];
configureFlags = [ configureFlags = [
"--enable-multibyte" "--enable-multibyte"

View File

@ -46,17 +46,24 @@ buildRustPackage rec {
pkgconfig pkgconfig
] ++ rpathLibs; ] ++ rpathLibs;
patchPhase = '' postPatch = ''
substituteInPlace copypasta/src/x11.rs \ substituteInPlace copypasta/src/x11.rs \
--replace Command::new\(\"xclip\"\) Command::new\(\"${xclip}/bin/xclip\"\) --replace Command::new\(\"xclip\"\) Command::new\(\"${xclip}/bin/xclip\"\)
''; '';
installPhase = '' installPhase = ''
runHook preInstall
mkdir -p $out/bin mkdir -p $out/bin
for f in $(find target/release -maxdepth 1 -type f); do for f in $(find target/release -maxdepth 1 -type f); do
cp $f $out/bin cp $f $out/bin
done; done;
patchelf --set-rpath "${stdenv.lib.makeLibraryPath rpathLibs}" $out/bin/alacritty patchelf --set-rpath "${stdenv.lib.makeLibraryPath rpathLibs}" $out/bin/alacritty
mkdir -p $out/share/applications
cp Alacritty.desktop $out/share/applications/alacritty.desktop
runHook postInstall
''; '';
dontPatchELF = true; dontPatchELF = true;

View File

@ -16,10 +16,6 @@ stdenv.mkDerivation rec {
sha256 = "1n639xr1qxx6rhqs0c6sjxp3bv8cwkmw1vfk1cji7514gj2a9v3p"; sha256 = "1n639xr1qxx6rhqs0c6sjxp3bv8cwkmw1vfk1cji7514gj2a9v3p";
}; };
cmakeFlags = [
"-DCMAKE_INSALL_PREFIX=$out"
];
enableParallelBuilding = true; enableParallelBuilding = true;
patches = [ patches = [

View File

@ -1,14 +1,14 @@
{ stdenv, lib, fetchFromGitHub, go, procps, removeReferencesTo }: { stdenv, lib, fetchFromGitHub, go, procps, removeReferencesTo }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "0.14.37"; version = "0.14.38";
name = "syncthing-${version}"; name = "syncthing-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "syncthing"; owner = "syncthing";
repo = "syncthing"; repo = "syncthing";
rev = "v${version}"; rev = "v${version}";
sha256 = "0mk09m5wc6g7w65cf86rrvzb2gfzbg4jrkwpsabn732iyhkkaj4z"; sha256 = "0afid083azvrihv1v2cas09dprr2fflmj9gi7iy18gvwy2pg0jj8";
}; };
buildInputs = [ go removeReferencesTo ]; buildInputs = [ go removeReferencesTo ];

View File

@ -86,7 +86,8 @@ stdenv.mkDerivation {
preferLocalBuild = true; preferLocalBuild = true;
inherit cc shell libc_bin libc_dev libc_lib binutils_bin coreutils_bin; inherit cc libc_bin libc_dev libc_lib binutils_bin coreutils_bin;
shell = getBin shell + shell.shellPath or "";
gnugrep_bin = if nativeTools then "" else gnugrep; gnugrep_bin = if nativeTools then "" else gnugrep;
binPrefix = prefix; binPrefix = prefix;
@ -384,10 +385,6 @@ stdenv.mkDerivation {
# for substitution in utils.sh # for substitution in utils.sh
expandResponseParams = "${expand-response-params}/bin/expand-response-params"; expandResponseParams = "${expand-response-params}/bin/expand-response-params";
crossAttrs = {
shell = shell.crossDrv + shell.crossDrv.shellPath;
};
meta = meta =
let cc_ = if cc != null then cc else {}; in let cc_ = if cc != null then cc else {}; in
(if cc_ ? meta then removeAttrs cc.meta ["priority"] else {}) // (if cc_ ? meta then removeAttrs cc.meta ["priority"] else {}) //

View File

@ -6,7 +6,7 @@
# variables so that the compiler and the linker just "work". # variables so that the compiler and the linker just "work".
{ name ? "", stdenv, lib, nativeTools, nativeLibc, nativePrefix ? "" { name ? "", stdenv, lib, nativeTools, nativeLibc, nativePrefix ? ""
, gcc ? null, libc ? null, binutils ? null, coreutils ? null, shell ? "" , gcc ? null, libc ? null, binutils ? null, coreutils ? null, shell ? stdenv.shell
, zlib ? null , zlib ? null
, hostPlatform, targetPlatform , hostPlatform, targetPlatform
}: }:
@ -56,15 +56,9 @@ stdenv.mkDerivation {
langAda = if nativeTools then false else gcc ? langAda && gcc.langAda; langAda = if nativeTools then false else gcc ? langAda && gcc.langAda;
langVhdl = if nativeTools then false else gcc ? langVhdl && gcc.langVhdl; langVhdl = if nativeTools then false else gcc ? langVhdl && gcc.langVhdl;
zlib = if gcc != null && gcc ? langVhdl then zlib else null; zlib = if gcc != null && gcc ? langVhdl then zlib else null;
shell = if shell == "" then stdenv.shell else shell = shell + shell.shellPath or "";
if builtins.isAttrs shell then (shell + shell.shellPath)
else shell;
crossAttrs = { crossAttrs = {
shell = shell.crossDrv + shell.crossDrv.shellPath;
coreutils = coreutils.crossDrv;
binutils = binutils.crossDrv;
gcc = gcc.crossDrv;
# #
# This is not the best way to do this. I think the reference should be # This is not the best way to do this. I think the reference should be
# the style in the gcc-cross-wrapper, but to keep a stable stdenv now I # the style in the gcc-cross-wrapper, but to keep a stable stdenv now I

View File

@ -4,10 +4,14 @@ let
self = { self = {
emscriptenfastcomp-unwrapped = callPackage ./emscripten-fastcomp.nix {}; emscriptenfastcomp-unwrapped = callPackage ./emscripten-fastcomp.nix {};
emscriptenfastcomp-wrapped = wrapCCWith stdenv.cc.libc '' emscriptenfastcomp-wrapped = wrapCCWith {
# hardening flags break WASM support cc = self.emscriptenfastcomp-unwrapped;
cat > $out/nix-support/add-hardening.sh libc = stdenv.cc.libc;
'' self.emscriptenfastcomp-unwrapped; extraBuildCommands = ''
# hardening flags break WASM support
cat > $out/nix-support/add-hardening.sh
'';
};
emscriptenfastcomp = symlinkJoin { emscriptenfastcomp = symlinkJoin {
name = "emscriptenfastcomp"; name = "emscriptenfastcomp";
paths = [ self.emscriptenfastcomp-wrapped self.emscriptenfastcomp-unwrapped ]; paths = [ self.emscriptenfastcomp-wrapped self.emscriptenfastcomp-unwrapped ];

View File

@ -1,15 +1,18 @@
{ fetchgit, stdenv, cmake, openssl, zlib }: { fetchFromGitHub, stdenv, cmake, openssl, zlib, libuv }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libwebsockets-1.4"; name = "libwebsockets-${version}";
version = "2.3.0";
src = fetchgit { src = fetchFromGitHub {
url = "git://git.libwebsockets.org/libwebsockets"; owner = "warmcat";
rev = "16fb0132cec0fcced29bce6d86eaf94a9beb9785"; repo = "libwebsockets";
sha256 = "0gk4dgx125nz7wl59bx0kgxxg261r9kyxvdff5ld98slr9f08d0l"; rev = "v${version}";
sha256 = "1hv2b5r6sg42xnqhm4ysjvyiz3cqpfmwaqm33vpbx0k7arj4ixvy";
}; };
buildInputs = [ cmake openssl zlib ]; buildInputs = [ cmake openssl zlib libuv ];
cmakeFlags = [ "-DLWS_WITH_PLUGINS=ON" ];
meta = { meta = {
description = "Light, portable C library for websockets"; description = "Light, portable C library for websockets";
@ -19,8 +22,7 @@ stdenv.mkDerivation rec {
throughput in both directions. throughput in both directions.
''; '';
homepage = https://libwebsockets.org/trac/libwebsockets; homepage = https://libwebsockets.org/trac/libwebsockets;
# See http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/tree/LICENSE license = stdenv.lib.licenses.lgpl21;
license = stdenv.lib.licenses.gpl2Plus;
maintainers = [ ]; maintainers = [ ];
platforms = stdenv.lib.platforms.all; platforms = stdenv.lib.platforms.all;
}; };

View File

@ -12,9 +12,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig perl ]; nativeBuildInputs = [ pkgconfig perl ];
buildInputs = [ glibmm ]; propagatedBuildInputs = [ libxml2 glibmm ];
propagatedBuildInputs = [ libxml2 ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://libxmlplusplus.sourceforge.net/; homepage = http://libxmlplusplus.sourceforge.net/;

View File

@ -0,0 +1,24 @@
{ stdenv, fetchFromGitHub, buildPythonPackage }:
buildPythonPackage rec {
pname = "radicale_infcloud";
name = "${pname}-${version}";
version = "2017-07-27";
src = fetchFromGitHub {
owner = "Unrud";
repo = "RadicaleInfCloud";
rev = "972757bf4c6be8b966ee063e3741ced29ba8169f";
sha256 = "1c9ql9nv8kwi791akwzd19dcqzd916i7yxzbnrismzw4f5bhgzsk";
};
doCheck = false; # Tries to import radicale, circular dependency
meta = with stdenv.lib; {
homepage = https://github.com/Unrud/RadicaleInfCloud/;
description = "Integrate InfCloud into Radicale's web interface";
license = with licenses; [ agpl3 gpl3 ];
platforms = platforms.all;
maintainers = with maintainers; [ aneeshusa ];
};
}

View File

@ -3,14 +3,14 @@
with lib; with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "0.54.0"; version = "0.55.0";
name = "flow-${version}"; name = "flow-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "facebook"; owner = "facebook";
repo = "flow"; repo = "flow";
rev = "v${version}"; rev = "v${version}";
sha256 = "02z3jrfrr6gn056wplwkhymd1nyncjs67yl3vhv6n27jr3572npn"; sha256 = "042q2197m9l7r6j053dd4hqaqv7dsc5wh8h6aifkcmqa4ypp4w5r";
}; };
installPhase = '' installPhase = ''

View File

@ -3,15 +3,22 @@
args@{ fetchgit, stdenv, autoconf, automake, automake111x, libtool args@{ fetchgit, stdenv, autoconf, automake, automake111x, libtool
, texinfo, glibcCross, hurdPartedCross, libuuid, samba , texinfo, glibcCross, hurdPartedCross, libuuid, samba
, gccCrossStageStatic, gccCrossStageFinal , gccCrossStageStatic, gccCrossStageFinal
, forcedNativePackages, forceSystem, newScope, platform, config , forceSystem, newScope, platform, config
, targetPlatform, buildPlatform , targetPlatform, buildPlatform
, overrides ? {} }: , overrides ? {}
, buildPackages, pkgs
}:
with args; with args;
let let
callPackage = newScope gnu; callPackage = newScope gnu;
forcedNativePackages =
if stdenv.hostPlatform == stdenv.buildPlatform
then pkgs
else buildPackages;
gnu = { gnu = {
hurdCross = forcedNativePackages.callPackage ./hurd { hurdCross = forcedNativePackages.callPackage ./hurd {
inherit fetchgit stdenv autoconf libtool texinfo inherit fetchgit stdenv autoconf libtool texinfo

View File

@ -18,11 +18,13 @@ stdenv.mkDerivation rec {
makeFlags = [ makeFlags = [
"KBASE=${kernel.dev}/lib/modules/${kernel.modDirVersion}" "KBASE=${kernel.dev}/lib/modules/${kernel.modDirVersion}"
"SHELL=/bin/sh" "SHELL=/bin/sh"
"HDAPS=1"
]; ];
installPhase = '' installPhase = ''
install -v -D -m 644 thinkpad_ec.ko "$out/lib/modules/${kernel.modDirVersion}/kernel/drivers/firmware/thinkpad_ec.ko" install -v -D -m 644 thinkpad_ec.ko "$out/lib/modules/${kernel.modDirVersion}/kernel/drivers/firmware/thinkpad_ec.ko"
install -v -D -m 644 tp_smapi.ko "$out/lib/modules/${kernel.modDirVersion}/kernel/drivers/firmware/tp_smapi.ko" install -v -D -m 644 tp_smapi.ko "$out/lib/modules/${kernel.modDirVersion}/kernel/drivers/firmware/tp_smapi.ko"
install -v -D -m 644 hdaps.ko "$out/lib/modules/${kernel.modDirVersion}/kernel/drivers/firmware/hdapsd.ko"
''; '';
dontStrip = true; dontStrip = true;

View File

@ -1,17 +1,17 @@
{ stdenv, fetchurl, openssl, libuuid, cmake, libwebsockets }: { stdenv, fetchurl, openssl, libuuid, cmake, libwebsockets, c-ares, libuv }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "mosquitto"; pname = "mosquitto";
version = "1.4"; version = "1.4.14";
name = "${pname}-${version}"; name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = http://mosquitto.org/files/source/mosquitto-1.4.tar.gz; url = "http://mosquitto.org/files/source/mosquitto-${version}.tar.gz";
sha256 = "1imw5ps0cqda41b574k8hgz9gdr8yy58f76fg8gw14pdnvf3l7sr"; sha256 = "1la2577h7hcyj7lq26vizj0sh2zmi9m7nbxjp3aalayi66kiysqm";
}; };
buildInputs = [ openssl libuuid libwebsockets ] buildInputs = [ openssl libuuid libwebsockets c-ares libuv ]
++ stdenv.lib.optional stdenv.isDarwin cmake; ++ stdenv.lib.optional stdenv.isDarwin cmake;
makeFlags = [ makeFlags = [
@ -24,7 +24,6 @@ stdenv.mkDerivation rec {
--replace "/usr/local" "" --replace "/usr/local" ""
substituteInPlace config.mk \ substituteInPlace config.mk \
--replace "WITH_WEBSOCKETS:=no" "WITH_WEBSOCKETS:=yes" --replace "WITH_WEBSOCKETS:=no" "WITH_WEBSOCKETS:=yes"
''; '';
meta = { meta = {

View File

@ -7,7 +7,7 @@ let
in buildGoPackage rec { in buildGoPackage rec {
name = "journalbeat-${version}"; name = "journalbeat-${version}";
version = "5.5.0"; version = "5.6.0";
goPackagePath = "github.com/mheese/journalbeat"; goPackagePath = "github.com/mheese/journalbeat";
@ -22,7 +22,7 @@ in buildGoPackage rec {
owner = "mheese"; owner = "mheese";
repo = "journalbeat"; repo = "journalbeat";
rev = "v${version}"; rev = "v${version}";
sha256 = "134n1kg6nx5yycn2cyldiayaqm8zps94hz4zfz9klp2jzq68m35y"; sha256 = "0b5yqzw1h945mwwyy7cza6bc7kzv3x1p9w2xkzmvr7rw3pd32r06";
}; };
meta = with lib; { meta = with lib; {

View File

@ -29,8 +29,6 @@ with pkgs;
callPackage_i686 = pkgsi686Linux.callPackage; callPackage_i686 = pkgsi686Linux.callPackage;
forcedNativePackages = if hostPlatform == buildPlatform then pkgs else buildPackages;
# A stdenv capable of building 32-bit binaries. On x86_64-linux, # A stdenv capable of building 32-bit binaries. On x86_64-linux,
# it uses GCC compiled with multilib support; on i686-linux, it's # it uses GCC compiled with multilib support; on i686-linux, it's
# just the plain stdenv. # just the plain stdenv.
@ -5390,17 +5388,22 @@ with pkgs;
}; };
wrapCCMulti = cc: wrapCCMulti = cc:
if system == "x86_64-linux" then lowPrio ( if system == "x86_64-linux" then lowPrio (wrapCCWith {
let cc = cc.cc.override {
extraBuildCommands = '' stdenv = overrideCC stdenv (wrapCCWith {
echo "dontMoveLib64=1" >> $out/nix-support/setup-hook cc = cc.cc;
''; libc = glibc_multi;
in wrapCCWith glibc_multi extraBuildCommands (cc.cc.override { });
stdenv = overrideCC stdenv (wrapCCWith glibc_multi "" cc.cc);
profiledCompiler = false; profiledCompiler = false;
enableMultilib = true; enableMultilib = true;
})) };
else throw "Multilib ${cc.name} not supported on ${system}";
libc = glibc_multi;
extraBuildCommands = ''
echo "dontMoveLib64=1" >> $out/nix-support/setup-hook
'';
}) else throw "Multilib ${cc.name} not supported on ${system}";
gcc_multi = wrapCCMulti gcc; gcc_multi = wrapCCMulti gcc;
@ -5427,35 +5430,31 @@ with pkgs;
if targetPlatform.libc == "msvcrt" then __targetPackages.windows.mingw_w64_headers if targetPlatform.libc == "msvcrt" then __targetPackages.windows.mingw_w64_headers
else if targetPlatform.libc == "libSystem" then darwin.xcode else if targetPlatform.libc == "libSystem" then darwin.xcode
else null; else null;
in wrapCCCross { in wrapCCWith {
cc = forcedNativePackages.gcc.cc.override { name = "gcc-cross-wrapper";
cc = gcc.cc.override {
crossStageStatic = true; crossStageStatic = true;
langCC = false; langCC = false;
libcCross = libcCross1; libcCross = libcCross1;
enableShared = false; enableShared = false;
# Why is this needed? # Why is this needed?
inherit (forcedNativePackages) binutils;
}; };
libc = libcCross1; libc = libcCross1;
inherit (forcedNativePackages) binutils;
}; };
# Only needed for mingw builds # Only needed for mingw builds
gccCrossMingw2 = assert targetPlatform != buildPlatform; wrapCCCross { gccCrossMingw2 = assert targetPlatform != buildPlatform; wrapCCWith {
name = "gcc-cross-wrapper";
cc = gccCrossStageStatic.gcc; cc = gccCrossStageStatic.gcc;
libc = windows.mingw_headers2; libc = windows.mingw_headers2;
inherit (forcedNativePackages) binutils;
}; };
gccCrossStageFinal = assert targetPlatform != buildPlatform; wrapCCCross { gccCrossStageFinal = assert targetPlatform != buildPlatform; wrapCCWith {
cc = forcedNativePackages.gcc.cc.override { name = "gcc-cross-wrapper";
cc = gcc.cc.override {
crossStageStatic = false; crossStageStatic = false;
# Why is this needed?
inherit (forcedNativePackages) binutils;
}; };
libc = libcCross; libc = libcCross;
inherit (forcedNativePackages) binutils;
}; };
gcc45 = lowPrio (wrapCC (callPackage ../development/compilers/gcc/4.5 { gcc45 = lowPrio (wrapCC (callPackage ../development/compilers/gcc/4.5 {
@ -6207,19 +6206,24 @@ with pkgs;
wla-dx = callPackage ../development/compilers/wla-dx { }; wla-dx = callPackage ../development/compilers/wla-dx { };
wrapCCWith = libc: extraBuildCommands: baseCC: ccWrapperFun { wrapCCWith = { name ? "", cc, libc, extraBuildCommands ? "" }: ccWrapperFun {
nativeTools = stdenv.cc.nativeTools or false; nativeTools = targetPlatform == hostPlatform && stdenv.cc.nativeTools or false;
nativeLibc = stdenv.cc.nativeLibc or false; nativeLibc = targetPlatform == hostPlatform && stdenv.cc.nativeLibc or false;
nativePrefix = stdenv.cc.nativePrefix or ""; nativePrefix = stdenv.cc.nativePrefix or "";
cc = baseCC; noLibc = (libc == null);
isGNU = baseCC.isGNU or false;
isClang = baseCC.isClang or false; isGNU = cc.isGNU or false;
inherit libc extraBuildCommands; isClang = cc.isClang or false;
inherit name cc libc extraBuildCommands;
}; };
ccWrapperFun = callPackage ../build-support/cc-wrapper; ccWrapperFun = callPackage ../build-support/cc-wrapper;
wrapCC = wrapCCWith stdenv.cc.libc ""; wrapCC = cc: wrapCCWith {
inherit cc;
inherit (stdenv.cc) libc;
};
# legacy version, used for gnat bootstrapping # legacy version, used for gnat bootstrapping
wrapGCC-old = baseGCC: callPackage ../build-support/gcc-wrapper-old { wrapGCC-old = baseGCC: callPackage ../build-support/gcc-wrapper-old {
nativeTools = stdenv.cc.nativeTools or false; nativeTools = stdenv.cc.nativeTools or false;
@ -6229,20 +6233,6 @@ with pkgs;
libc = glibc; libc = glibc;
}; };
wrapCCCross =
{cc, libc, binutils, shell ? "", name ? "gcc-cross-wrapper"}:
forcedNativePackages.ccWrapperFun {
nativeTools = false;
nativeLibc = false;
noLibc = (libc == null);
isGNU = cc.isGNU or false;
isClang = cc.isClang or false;
inherit cc binutils libc shell name;
};
# prolog # prolog
yap = callPackage ../development/compilers/yap { }; yap = callPackage ../development/compilers/yap { };
@ -7334,7 +7324,7 @@ with pkgs;
cross_renaming: we should make all programs use pkgconfig as cross_renaming: we should make all programs use pkgconfig as
nativeBuildInput after the renaming. nativeBuildInput after the renaming.
*/ */
pkgconfig = forcedNativePackages.callPackage ../development/tools/misc/pkgconfig { pkgconfig = callPackage ../development/tools/misc/pkgconfig {
fetchurl = fetchurlBoot; fetchurl = fetchurlBoot;
}; };
pkgconfigUpstream = lowPrio (pkgconfig.override { vanilla = true; }); pkgconfigUpstream = lowPrio (pkgconfig.override { vanilla = true; });

View File

@ -18182,6 +18182,8 @@ in {
}; };
}; };
radicale_infcloud = callPackage ../development/python-modules/radicale_infcloud {};
recaptcha_client = buildPythonPackage rec { recaptcha_client = buildPythonPackage rec {
name = "recaptcha-client-1.0.6"; name = "recaptcha-client-1.0.6";