Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge branch 'master' into staging

+118 -96
+2 -2
pkgs/applications/editors/vim/default.nix
··· 18 18 19 19 inherit (common) version src postPatch hardeningDisable enableParallelBuilding meta; 20 20 21 - buildInputs = [ ncurses pkgconfig ] 21 + nativeBuildInputs = [ gettext pkgconfig ]; 22 + buildInputs = [ ncurses ] 22 23 ++ stdenv.lib.optionals hostPlatform.isDarwin [ Carbon Cocoa ]; 23 - nativeBuildInputs = [ gettext ]; 24 24 25 25 configureFlags = [ 26 26 "--enable-multibyte"
+8 -1
pkgs/applications/misc/alacritty/default.nix
··· 46 46 pkgconfig 47 47 ] ++ rpathLibs; 48 48 49 - patchPhase = '' 49 + postPatch = '' 50 50 substituteInPlace copypasta/src/x11.rs \ 51 51 --replace Command::new\(\"xclip\"\) Command::new\(\"${xclip}/bin/xclip\"\) 52 52 ''; 53 53 54 54 installPhase = '' 55 + runHook preInstall 56 + 55 57 mkdir -p $out/bin 56 58 for f in $(find target/release -maxdepth 1 -type f); do 57 59 cp $f $out/bin 58 60 done; 59 61 patchelf --set-rpath "${stdenv.lib.makeLibraryPath rpathLibs}" $out/bin/alacritty 62 + 63 + mkdir -p $out/share/applications 64 + cp Alacritty.desktop $out/share/applications/alacritty.desktop 65 + 66 + runHook postInstall 60 67 ''; 61 68 62 69 dontPatchELF = true;
-4
pkgs/applications/misc/lenmus/default.nix
··· 16 16 sha256 = "1n639xr1qxx6rhqs0c6sjxp3bv8cwkmw1vfk1cji7514gj2a9v3p"; 17 17 }; 18 18 19 - cmakeFlags = [ 20 - "-DCMAKE_INSALL_PREFIX=$out" 21 - ]; 22 - 23 19 enableParallelBuilding = true; 24 20 25 21 patches = [
+2 -2
pkgs/applications/networking/syncthing/default.nix
··· 1 1 { stdenv, lib, fetchFromGitHub, go, procps, removeReferencesTo }: 2 2 3 3 stdenv.mkDerivation rec { 4 - version = "0.14.37"; 4 + version = "0.14.38"; 5 5 name = "syncthing-${version}"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "syncthing"; 9 9 repo = "syncthing"; 10 10 rev = "v${version}"; 11 - sha256 = "0mk09m5wc6g7w65cf86rrvzb2gfzbg4jrkwpsabn732iyhkkaj4z"; 11 + sha256 = "0afid083azvrihv1v2cas09dprr2fflmj9gi7iy18gvwy2pg0jj8"; 12 12 }; 13 13 14 14 buildInputs = [ go removeReferencesTo ];
+2 -5
pkgs/build-support/cc-wrapper/default.nix
··· 86 86 87 87 preferLocalBuild = true; 88 88 89 - inherit cc shell libc_bin libc_dev libc_lib binutils_bin coreutils_bin; 89 + inherit cc libc_bin libc_dev libc_lib binutils_bin coreutils_bin; 90 + shell = getBin shell + shell.shellPath or ""; 90 91 gnugrep_bin = if nativeTools then "" else gnugrep; 91 92 92 93 binPrefix = prefix; ··· 383 384 384 385 # for substitution in utils.sh 385 386 expandResponseParams = "${expand-response-params}/bin/expand-response-params"; 386 - 387 - crossAttrs = { 388 - shell = shell.crossDrv + shell.crossDrv.shellPath; 389 - }; 390 387 391 388 meta = 392 389 let cc_ = if cc != null then cc else {}; in
+2 -8
pkgs/build-support/gcc-wrapper-old/default.nix
··· 6 6 # variables so that the compiler and the linker just "work". 7 7 8 8 { name ? "", stdenv, lib, nativeTools, nativeLibc, nativePrefix ? "" 9 - , gcc ? null, libc ? null, binutils ? null, coreutils ? null, shell ? "" 9 + , gcc ? null, libc ? null, binutils ? null, coreutils ? null, shell ? stdenv.shell 10 10 , zlib ? null 11 11 , hostPlatform, targetPlatform 12 12 }: ··· 56 56 langAda = if nativeTools then false else gcc ? langAda && gcc.langAda; 57 57 langVhdl = if nativeTools then false else gcc ? langVhdl && gcc.langVhdl; 58 58 zlib = if gcc != null && gcc ? langVhdl then zlib else null; 59 - shell = if shell == "" then stdenv.shell else 60 - if builtins.isAttrs shell then (shell + shell.shellPath) 61 - else shell; 59 + shell = shell + shell.shellPath or ""; 62 60 63 61 crossAttrs = { 64 - shell = shell.crossDrv + shell.crossDrv.shellPath; 65 - coreutils = coreutils.crossDrv; 66 - binutils = binutils.crossDrv; 67 - gcc = gcc.crossDrv; 68 62 # 69 63 # This is not the best way to do this. I think the reference should be 70 64 # the style in the gcc-cross-wrapper, but to keep a stable stdenv now I
+8 -4
pkgs/development/compilers/emscripten-fastcomp/default.nix
··· 4 4 5 5 self = { 6 6 emscriptenfastcomp-unwrapped = callPackage ./emscripten-fastcomp.nix {}; 7 - emscriptenfastcomp-wrapped = wrapCCWith stdenv.cc.libc '' 8 - # hardening flags break WASM support 9 - cat > $out/nix-support/add-hardening.sh 10 - '' self.emscriptenfastcomp-unwrapped; 7 + emscriptenfastcomp-wrapped = wrapCCWith { 8 + cc = self.emscriptenfastcomp-unwrapped; 9 + libc = stdenv.cc.libc; 10 + extraBuildCommands = '' 11 + # hardening flags break WASM support 12 + cat > $out/nix-support/add-hardening.sh 13 + ''; 14 + }; 11 15 emscriptenfastcomp = symlinkJoin { 12 16 name = "emscriptenfastcomp"; 13 17 paths = [ self.emscriptenfastcomp-wrapped self.emscriptenfastcomp-unwrapped ];
+11 -9
pkgs/development/libraries/libwebsockets/default.nix
··· 1 - { fetchgit, stdenv, cmake, openssl, zlib }: 1 + { fetchFromGitHub, stdenv, cmake, openssl, zlib, libuv }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "libwebsockets-1.4"; 4 + name = "libwebsockets-${version}"; 5 + version = "2.3.0"; 5 6 6 - src = fetchgit { 7 - url = "git://git.libwebsockets.org/libwebsockets"; 8 - rev = "16fb0132cec0fcced29bce6d86eaf94a9beb9785"; 9 - sha256 = "0gk4dgx125nz7wl59bx0kgxxg261r9kyxvdff5ld98slr9f08d0l"; 7 + src = fetchFromGitHub { 8 + owner = "warmcat"; 9 + repo = "libwebsockets"; 10 + rev = "v${version}"; 11 + sha256 = "1hv2b5r6sg42xnqhm4ysjvyiz3cqpfmwaqm33vpbx0k7arj4ixvy"; 10 12 }; 11 13 12 - buildInputs = [ cmake openssl zlib ]; 14 + buildInputs = [ cmake openssl zlib libuv ]; 15 + cmakeFlags = [ "-DLWS_WITH_PLUGINS=ON" ]; 13 16 14 17 meta = { 15 18 description = "Light, portable C library for websockets"; ··· 19 22 throughput in both directions. 20 23 ''; 21 24 homepage = https://libwebsockets.org/trac/libwebsockets; 22 - # See http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/tree/LICENSE 23 - license = stdenv.lib.licenses.gpl2Plus; 25 + license = stdenv.lib.licenses.lgpl21; 24 26 maintainers = [ ]; 25 27 platforms = stdenv.lib.platforms.all; 26 28 };
+1 -3
pkgs/development/libraries/libxmlxx/default.nix
··· 12 12 13 13 nativeBuildInputs = [ pkgconfig perl ]; 14 14 15 - buildInputs = [ glibmm ]; 16 - 17 - propagatedBuildInputs = [ libxml2 ]; 15 + propagatedBuildInputs = [ libxml2 glibmm ]; 18 16 19 17 meta = with stdenv.lib; { 20 18 homepage = http://libxmlplusplus.sourceforge.net/;
+24
pkgs/development/python-modules/radicale_infcloud/default.nix
··· 1 + { stdenv, fetchFromGitHub, buildPythonPackage }: 2 + 3 + buildPythonPackage rec { 4 + pname = "radicale_infcloud"; 5 + name = "${pname}-${version}"; 6 + version = "2017-07-27"; 7 + 8 + src = fetchFromGitHub { 9 + owner = "Unrud"; 10 + repo = "RadicaleInfCloud"; 11 + rev = "972757bf4c6be8b966ee063e3741ced29ba8169f"; 12 + sha256 = "1c9ql9nv8kwi791akwzd19dcqzd916i7yxzbnrismzw4f5bhgzsk"; 13 + }; 14 + 15 + doCheck = false; # Tries to import radicale, circular dependency 16 + 17 + meta = with stdenv.lib; { 18 + homepage = https://github.com/Unrud/RadicaleInfCloud/; 19 + description = "Integrate InfCloud into Radicale's web interface"; 20 + license = with licenses; [ agpl3 gpl3 ]; 21 + platforms = platforms.all; 22 + maintainers = with maintainers; [ aneeshusa ]; 23 + }; 24 + }
+2 -2
pkgs/development/tools/analysis/flow/default.nix
··· 3 3 with lib; 4 4 5 5 stdenv.mkDerivation rec { 6 - version = "0.54.0"; 6 + version = "0.55.0"; 7 7 name = "flow-${version}"; 8 8 9 9 src = fetchFromGitHub { 10 10 owner = "facebook"; 11 11 repo = "flow"; 12 12 rev = "v${version}"; 13 - sha256 = "02z3jrfrr6gn056wplwkhymd1nyncjs67yl3vhv6n27jr3572npn"; 13 + sha256 = "042q2197m9l7r6j053dd4hqaqv7dsc5wh8h6aifkcmqa4ypp4w5r"; 14 14 }; 15 15 16 16 installPhase = ''
+9 -2
pkgs/os-specific/gnu/default.nix
··· 3 3 args@{ fetchgit, stdenv, autoconf, automake, automake111x, libtool 4 4 , texinfo, glibcCross, hurdPartedCross, libuuid, samba 5 5 , gccCrossStageStatic, gccCrossStageFinal 6 - , forcedNativePackages, forceSystem, newScope, platform, config 6 + , forceSystem, newScope, platform, config 7 7 , targetPlatform, buildPlatform 8 - , overrides ? {} }: 8 + , overrides ? {} 9 + , buildPackages, pkgs 10 + }: 9 11 10 12 with args; 11 13 12 14 let 13 15 callPackage = newScope gnu; 16 + 17 + forcedNativePackages = 18 + if stdenv.hostPlatform == stdenv.buildPlatform 19 + then pkgs 20 + else buildPackages; 14 21 15 22 gnu = { 16 23 hurdCross = forcedNativePackages.callPackage ./hurd {
+2
pkgs/os-specific/linux/tp_smapi/default.nix
··· 18 18 makeFlags = [ 19 19 "KBASE=${kernel.dev}/lib/modules/${kernel.modDirVersion}" 20 20 "SHELL=/bin/sh" 21 + "HDAPS=1" 21 22 ]; 22 23 23 24 installPhase = '' 24 25 install -v -D -m 644 thinkpad_ec.ko "$out/lib/modules/${kernel.modDirVersion}/kernel/drivers/firmware/thinkpad_ec.ko" 25 26 install -v -D -m 644 tp_smapi.ko "$out/lib/modules/${kernel.modDirVersion}/kernel/drivers/firmware/tp_smapi.ko" 27 + install -v -D -m 644 hdaps.ko "$out/lib/modules/${kernel.modDirVersion}/kernel/drivers/firmware/hdapsd.ko" 26 28 ''; 27 29 28 30 dontStrip = true;
+5 -6
pkgs/servers/mqtt/mosquitto/default.nix
··· 1 - { stdenv, fetchurl, openssl, libuuid, cmake, libwebsockets }: 1 + { stdenv, fetchurl, openssl, libuuid, cmake, libwebsockets, c-ares, libuv }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "mosquitto"; 5 - version = "1.4"; 5 + version = "1.4.14"; 6 6 7 7 name = "${pname}-${version}"; 8 8 9 9 src = fetchurl { 10 - url = http://mosquitto.org/files/source/mosquitto-1.4.tar.gz; 11 - sha256 = "1imw5ps0cqda41b574k8hgz9gdr8yy58f76fg8gw14pdnvf3l7sr"; 10 + url = "http://mosquitto.org/files/source/mosquitto-${version}.tar.gz"; 11 + sha256 = "1la2577h7hcyj7lq26vizj0sh2zmi9m7nbxjp3aalayi66kiysqm"; 12 12 }; 13 13 14 - buildInputs = [ openssl libuuid libwebsockets ] 14 + buildInputs = [ openssl libuuid libwebsockets c-ares libuv ] 15 15 ++ stdenv.lib.optional stdenv.isDarwin cmake; 16 16 17 17 makeFlags = [ ··· 24 24 --replace "/usr/local" "" 25 25 substituteInPlace config.mk \ 26 26 --replace "WITH_WEBSOCKETS:=no" "WITH_WEBSOCKETS:=yes" 27 - 28 27 ''; 29 28 30 29 meta = {
+2 -2
pkgs/tools/system/journalbeat/default.nix
··· 7 7 in buildGoPackage rec { 8 8 9 9 name = "journalbeat-${version}"; 10 - version = "5.5.0"; 10 + version = "5.6.0"; 11 11 12 12 goPackagePath = "github.com/mheese/journalbeat"; 13 13 ··· 22 22 owner = "mheese"; 23 23 repo = "journalbeat"; 24 24 rev = "v${version}"; 25 - sha256 = "134n1kg6nx5yycn2cyldiayaqm8zps94hz4zfz9klp2jzq68m35y"; 25 + sha256 = "0b5yqzw1h945mwwyy7cza6bc7kzv3x1p9w2xkzmvr7rw3pd32r06"; 26 26 }; 27 27 28 28 meta = with lib; {
+36 -46
pkgs/top-level/all-packages.nix
··· 29 29 30 30 callPackage_i686 = pkgsi686Linux.callPackage; 31 31 32 - forcedNativePackages = if hostPlatform == buildPlatform then pkgs else buildPackages; 33 - 34 32 # A stdenv capable of building 32-bit binaries. On x86_64-linux, 35 33 # it uses GCC compiled with multilib support; on i686-linux, it's 36 34 # just the plain stdenv. ··· 5390 5388 }; 5391 5389 5392 5390 wrapCCMulti = cc: 5393 - if system == "x86_64-linux" then lowPrio ( 5394 - let 5395 - extraBuildCommands = '' 5396 - echo "dontMoveLib64=1" >> $out/nix-support/setup-hook 5397 - ''; 5398 - in wrapCCWith glibc_multi extraBuildCommands (cc.cc.override { 5399 - stdenv = overrideCC stdenv (wrapCCWith glibc_multi "" cc.cc); 5391 + if system == "x86_64-linux" then lowPrio (wrapCCWith { 5392 + cc = cc.cc.override { 5393 + stdenv = overrideCC stdenv (wrapCCWith { 5394 + cc = cc.cc; 5395 + libc = glibc_multi; 5396 + }); 5400 5397 profiledCompiler = false; 5401 5398 enableMultilib = true; 5402 - })) 5403 - else throw "Multilib ${cc.name} not supported on ‘${system}’"; 5399 + }; 5400 + 5401 + libc = glibc_multi; 5402 + 5403 + extraBuildCommands = '' 5404 + echo "dontMoveLib64=1" >> $out/nix-support/setup-hook 5405 + ''; 5406 + }) else throw "Multilib ${cc.name} not supported on ‘${system}’"; 5404 5407 5405 5408 gcc_multi = wrapCCMulti gcc; 5406 5409 ··· 5427 5430 if targetPlatform.libc == "msvcrt" then __targetPackages.windows.mingw_w64_headers 5428 5431 else if targetPlatform.libc == "libSystem" then darwin.xcode 5429 5432 else null; 5430 - in wrapCCCross { 5431 - cc = forcedNativePackages.gcc.cc.override { 5433 + in wrapCCWith { 5434 + name = "gcc-cross-wrapper"; 5435 + cc = gcc.cc.override { 5432 5436 crossStageStatic = true; 5433 5437 langCC = false; 5434 5438 libcCross = libcCross1; 5435 5439 enableShared = false; 5436 5440 # Why is this needed? 5437 - inherit (forcedNativePackages) binutils; 5438 5441 }; 5439 5442 libc = libcCross1; 5440 - inherit (forcedNativePackages) binutils; 5441 5443 }; 5442 5444 5443 5445 # Only needed for mingw builds 5444 - gccCrossMingw2 = assert targetPlatform != buildPlatform; wrapCCCross { 5446 + gccCrossMingw2 = assert targetPlatform != buildPlatform; wrapCCWith { 5447 + name = "gcc-cross-wrapper"; 5445 5448 cc = gccCrossStageStatic.gcc; 5446 5449 libc = windows.mingw_headers2; 5447 - inherit (forcedNativePackages) binutils; 5448 5450 }; 5449 5451 5450 - gccCrossStageFinal = assert targetPlatform != buildPlatform; wrapCCCross { 5451 - cc = forcedNativePackages.gcc.cc.override { 5452 + gccCrossStageFinal = assert targetPlatform != buildPlatform; wrapCCWith { 5453 + name = "gcc-cross-wrapper"; 5454 + cc = gcc.cc.override { 5452 5455 crossStageStatic = false; 5453 - 5454 - # Why is this needed? 5455 - inherit (forcedNativePackages) binutils; 5456 5456 }; 5457 5457 libc = libcCross; 5458 - inherit (forcedNativePackages) binutils; 5459 5458 }; 5460 5459 5461 5460 gcc45 = lowPrio (wrapCC (callPackage ../development/compilers/gcc/4.5 { ··· 6207 6206 6208 6207 wla-dx = callPackage ../development/compilers/wla-dx { }; 6209 6208 6210 - wrapCCWith = libc: extraBuildCommands: baseCC: ccWrapperFun { 6211 - nativeTools = stdenv.cc.nativeTools or false; 6212 - nativeLibc = stdenv.cc.nativeLibc or false; 6209 + wrapCCWith = { name ? "", cc, libc, extraBuildCommands ? "" }: ccWrapperFun { 6210 + nativeTools = targetPlatform == hostPlatform && stdenv.cc.nativeTools or false; 6211 + nativeLibc = targetPlatform == hostPlatform && stdenv.cc.nativeLibc or false; 6213 6212 nativePrefix = stdenv.cc.nativePrefix or ""; 6214 - cc = baseCC; 6215 - isGNU = baseCC.isGNU or false; 6216 - isClang = baseCC.isClang or false; 6217 - inherit libc extraBuildCommands; 6213 + noLibc = (libc == null); 6214 + 6215 + isGNU = cc.isGNU or false; 6216 + isClang = cc.isClang or false; 6217 + 6218 + inherit name cc libc extraBuildCommands; 6218 6219 }; 6219 6220 6220 6221 ccWrapperFun = callPackage ../build-support/cc-wrapper; 6221 6222 6222 - wrapCC = wrapCCWith stdenv.cc.libc ""; 6223 + wrapCC = cc: wrapCCWith { 6224 + inherit cc; 6225 + inherit (stdenv.cc) libc; 6226 + }; 6223 6227 # legacy version, used for gnat bootstrapping 6224 6228 wrapGCC-old = baseGCC: callPackage ../build-support/gcc-wrapper-old { 6225 6229 nativeTools = stdenv.cc.nativeTools or false; ··· 6228 6232 gcc = baseGCC; 6229 6233 libc = glibc; 6230 6234 }; 6231 - 6232 - wrapCCCross = 6233 - {cc, libc, binutils, shell ? "", name ? "gcc-cross-wrapper"}: 6234 - 6235 - forcedNativePackages.ccWrapperFun { 6236 - nativeTools = false; 6237 - nativeLibc = false; 6238 - noLibc = (libc == null); 6239 - 6240 - isGNU = cc.isGNU or false; 6241 - isClang = cc.isClang or false; 6242 - 6243 - inherit cc binutils libc shell name; 6244 - }; 6245 6235 6246 6236 # prolog 6247 6237 yap = callPackage ../development/compilers/yap { }; ··· 7334 7324 cross_renaming: we should make all programs use pkgconfig as 7335 7325 nativeBuildInput after the renaming. 7336 7326 */ 7337 - pkgconfig = forcedNativePackages.callPackage ../development/tools/misc/pkgconfig { 7327 + pkgconfig = callPackage ../development/tools/misc/pkgconfig { 7338 7328 fetchurl = fetchurlBoot; 7339 7329 }; 7340 7330 pkgconfigUpstream = lowPrio (pkgconfig.override { vanilla = true; });
+2
pkgs/top-level/python-packages.nix
··· 18182 18182 }; 18183 18183 }; 18184 18184 18185 + radicale_infcloud = callPackage ../development/python-modules/radicale_infcloud {}; 18186 + 18185 18187 recaptcha_client = buildPythonPackage rec { 18186 18188 name = "recaptcha-client-1.0.6"; 18187 18189