git.iko.soy/typeable/nixpkgs
on master help sign in
Merge branch 'master' into staging
commit36818207e97d70a209958e305f746c514ee3cc14 authorDaiderd Jordan <daiderd@gmail.com> dateFri 17 Nov 2017, 22:45 (9 years ago) parent1352789399a22e
12 files changed+122−92
pkgs/applications/networking/cluster/spark/default.nix+3−3 pkgs/applications/networking/dropbox/default.nix+25−3 pkgs/desktops/xfce/core/thunar-build.nix+2−2 pkgs/development/compilers/rust/binaryBuild.nix+33−22 pkgs/development/compilers/rust/bootstrap.nix+9−10 pkgs/development/compilers/rust/cargo.nix+14−7 pkgs/development/compilers/rust/default.nix+2−2 pkgs/development/libraries/libmsgpack/1.4.nix−12 pkgs/development/libraries/libmsgpack/2.0.nix−12 pkgs/development/tools/misc/ycmd/default.nix+3−3 pkgs/development/tools/misc/ycmd/dont-symlink-clang.patch+28−11 pkgs/top-level/all-packages.nix+3−5
pkgs/applications/networking/cluster/spark/default.nix+3−3
@@ -10,9 +10,9 @@ let
1010 hadoopVersion = "cdh4";
1111 sparkSha256 = "00il083cjb9xqzsma2ifphq9ggichwndrj6skh2z5z9jk3z0lgyn";
1212 };
13− "2.1.0" = {
14− hadoopVersion = "hadoop2.4";
15− sparkSha256 = "0pbsmbjwijsfgbnm56kgwnmnlqkz3w010ma0d7vzlkdklj40vqn2";
13+ "2.2.0" = {
14+ hadoopVersion = "hadoop2.7";
15+ sparkSha256 = "0wjjn2pgalrcji8avhj5d48kl1mf7rhrdxhzf29dbiszq4fkx0s6";
1616 };
1717 };
1818in
pkgs/applications/networking/dropbox/default.nix+25−3
@@ -35,7 +35,8 @@ buildFHSUserEnv {
3535 targetPkgs = pkgs: with pkgs; with xlibs; [
3636 libICE libSM libX11 libXcomposite libXdamage libXext libXfixes libXrender
3737 libXxf86vm libxcb xkeyboardconfig
38− curl dbus fontconfig freetype gcc glib gnutar libxml2 libxslt zlib
38+ curl dbus firefox-bin fontconfig freetype gcc glib gnutar libxml2 libxslt
39+ procps zlib
3940 ];
4041
4142 extraInstallCommands = ''
@@ -44,13 +45,34 @@ buildFHSUserEnv {
4445 '';
4546
4647 runScript = writeScript "install-and-start-dropbox" ''
48+ export BROWSER=firefox
49+
50+ set -e
51+
52+ do_install=
4753 if ! [ -d "$HOME/.dropbox-dist" ]; then
54+ do_install=1
55+ else
56+ installed_version=$(cat "$HOME/.dropbox-dist/VERSION")
57+ latest_version=$(printf "${version}\n$installed_version\n" | sort -V | head -n 1)
58+ if [ "x$installed_version" != "x$latest_version" ]; then
59+ do_install=1
60+ fi
61+ fi
62+
63+ if [ -n "$do_install" ]; then
64+ installer=$(mktemp)
4865 # Dropbox is not installed.
4966 # Download and unpack the client. If a newer version is available,
5067 # the client will update itself when run.
51− curl '${installer}' | tar -C "$HOME" -x -z
68+ curl '${installer}' >"$installer"
69+ pkill dropbox || true
70+ rm -fr "$HOME/.dropbox-dist"
71+ tar -C "$HOME" -x -z -f "$installer"
72+ rm "$installer"
5273 fi
53− exec "$HOME/.dropbox-dist/dropboxd"
74+
75+ exec "$HOME/.dropbox-dist/dropboxd" "$@"
5476 '';
5577
5678 meta = with lib; {
pkgs/desktops/xfce/core/thunar-build.nix+2−2
@@ -1,6 +1,6 @@
11{ stdenv, fetchurl, pkgconfig, intltool
22, gtk, dbus_glib, libstartup_notification, libnotify, libexif, pcre, udev
3−, exo, libxfce4util, xfconf, xfce4panel
3+, exo, libxfce4util, xfconf, xfce4panel, wrapGAppsHook
44}:
55
66stdenv.mkDerivation rec {
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
2121 sed -i -e 's|thunar_dialogs_show_insecure_program (parent, _(".*"), file, exec)|1|' thunar/thunar-file.c
2222 '';
2323
24− nativeBuildInputs = [ pkgconfig ];
24+ nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
2525 buildInputs = [
2626 intltool
2727 gtk dbus_glib libstartup_notification libnotify libexif pcre udev
pkgs/development/compilers/rust/binaryBuild.nix+33−22
@@ -6,12 +6,32 @@
66}:
77
88let
9− inherit (stdenv.lib) optionalString;
10−
11− needsPatchelf = stdenv.isLinux;
9+ inherit (stdenv.lib) getLib optionalString;
10+ inherit (darwin) libiconv;
11+ inherit (darwin.apple_sdk.frameworks) Security;
1212
1313 bootstrapping = versionType == "bootstrap";
1414
15+ patchBootstrapCargo = ''
16+ ${optionalString (stdenv.isLinux && bootstrapping) ''
17+ patchelf \
18+ --set-rpath "${stdenv.lib.makeLibraryPath [ curl zlib ]}" \
19+ --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
20+ "$out/bin/cargo"
21+ ''}
22+ ${optionalString (stdenv.isDarwin && bootstrapping) ''
23+ install_name_tool \
24+ -change /usr/lib/libiconv.2.dylib '${getLib libiconv}/lib/libiconv.2.dylib' \
25+ "$out/bin/cargo"
26+ install_name_tool \
27+ -change /usr/lib/libcurl.4.dylib '${getLib curl}/lib/libcurl.4.dylib' \
28+ "$out/bin/cargo"
29+ install_name_tool \
30+ -change /usr/lib/libz.1.dylib '${getLib zlib}/lib/libz.1.dylib' \
31+ "$out/bin/cargo"
32+ ''}
33+ '';
34+
1535 installComponents
1636 = "rustc,rust-std-${platform}"
1737 + (optionalString bootstrapping ",rust-docs,cargo")
@@ -34,22 +54,21 @@ rec {
3454 license = [ licenses.mit licenses.asl20 ];
3555 };
3656
37− phases = ["unpackPhase" "installPhase"];
57+ phases = ["unpackPhase" "installPhase" "fixupPhase"];
3858
39− propagatedBuildInputs = stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
59+ propagatedBuildInputs = stdenv.lib.optional stdenv.isDarwin Security;
4060
4161 installPhase = ''
4262 ./install.sh --prefix=$out \
4363 --components=${installComponents}
4464
45− ${optionalString (needsPatchelf && bootstrapping) ''
65+ ${optionalString (stdenv.isLinux && bootstrapping) ''
4666 patchelf \
4767 --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
48− "$out/bin/rustdoc"
68+ "$out/bin/rustc"
4969 patchelf \
50− --set-rpath "${stdenv.lib.makeLibraryPath [ curl zlib ]}" \
5170 --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
52− "$out/bin/cargo"
71+ "$out/bin/rustdoc"
5372 ''}
5473 ${optionalString (stdenv.isDarwin && bootstrapping) ''
5574 install_name_tool -change /usr/lib/libiconv.2.dylib '${darwin.libiconv}/lib/libiconv.2.dylib' "$out/bin/cargo"
@@ -57,19 +76,14 @@ rec {
5776 install_name_tool -change /usr/lib/libz.1.dylib '${stdenv.lib.getLib zlib}/lib/libz.1.dylib' "$out/bin/cargo"
5877 ''}
5978
60− ${optionalString needsPatchelf ''
61− patchelf \
62− --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
63− "$out/bin/rustc"
79+ ${patchBootstrapCargo}
6480
6581 # Do NOT, I repeat, DO NOT use `wrapProgram` on $out/bin/rustc
6682 # (or similar) here. It causes strange effects where rustc loads
6783 # the wrong libraries in a bootstrap-build causing failures that
6884 # are very hard to track dow. For details, see
6985 # https://github.com/rust-lang/rust/issues/34722#issuecomment-232164943
70− ''}
7186 '';
72−
7387 };
7488
7589 cargo = stdenv.mkDerivation rec {
@@ -85,19 +99,16 @@ rec {
8599 license = [ licenses.mit licenses.asl20 ];
86100 };
87101
102+ phases = ["unpackPhase" "installPhase" "fixupPhase"];
103+
88104 buildInputs = [ makeWrapper ];
89− phases = ["unpackPhase" "installPhase"];
105+ propagatedBuildInputs = stdenv.lib.optional stdenv.isDarwin Security;
90106
91107 installPhase = ''
92108 ./install.sh --prefix=$out \
93109 --components=cargo
94110
95− ${optionalString needsPatchelf ''
96− patchelf \
97− --set-rpath "${stdenv.lib.makeLibraryPath [ curl zlib ]}" \
98− --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
99− "$out/bin/cargo"
100− ''}
111+ ${patchBootstrapCargo}
101112
102113 wrapProgram "$out/bin/cargo" \
103114 --suffix PATH : "${rustc}/bin"
pkgs/development/compilers/rust/bootstrap.nix+9−10
@@ -1,16 +1,16 @@
1−{ stdenv, fetchurl, makeWrapper, cacert, zlib, curl, darwin }:
1+{ stdenv, fetchurl, callPackage }:
22
33let
44 # Note: the version MUST be one version prior to the version we're
55 # building
6− version = "1.19.0";
6+ version = "1.20.0";
77
8− # fetch hashes by running `print-hashes.sh 1.19.0`
8+ # fetch hashes by running `print-hashes.sh 1.20.0`
99 hashes = {
10− i686-unknown-linux-gnu = "657b78f3c1a1b4412e12f7278e20cc318022fa276a58f0d38a0d15b515e39713";
11− x86_64-unknown-linux-gnu = "30ff67884464d32f6bbbde4387e7557db98868e87fb2afbb77c9b7716e3bff09";
12− i686-apple-darwin = "bdfd2189245dc5764c9f26bdba1429c2bf9d57477d8e6e3f0ba42ea0dc63edeb";
13− x86_64-apple-darwin = "5c668fb60a3ba3e97dc2cb8967fc4bb9422b629155284dcb89f94d116bb17820";
10+ i686-unknown-linux-gnu = "abe592e06616cdc2fcca56ddbe482050dd49a1fada35e2af031c64fe6eb14668";
11+ x86_64-unknown-linux-gnu = "ca1cf3aed73ff03d065a7d3e57ecca92228d35dc36d9274a6597441319f18eb8";
12+ i686-apple-darwin = "b3c2470f8f132d285e6c989681e251592b67071bc9d93cac8a2e6b66f7bdfcb5";
13+ x86_64-apple-darwin = "fa1fb8896d5e327cbe6deeb50e6e9a3346de629f2e6bcbd8c10f19f3e2ed67d5";
1414 };
1515
1616 platform =
@@ -29,9 +29,8 @@ let
2929 sha256 = hashes."${platform}";
3030 };
3131
32−in import ./binaryBuild.nix
33− { inherit stdenv fetchurl makeWrapper cacert zlib curl darwin;
32+in callPackage ./binaryBuild.nix
33+ { inherit version src platform;
3434 buildRustPackage = null;
35− inherit version src platform;
3635 versionType = "bootstrap";
3736 }
pkgs/development/compilers/rust/cargo.nix+14−7
@@ -1,7 +1,11 @@
11{ stdenv, fetchFromGitHub, file, curl, pkgconfig, python, openssl, cmake, zlib
22, makeWrapper, libiconv, cacert, rustPlatform, rustc, libgit2, darwin
33, version, srcSha, cargoSha256
4−, patches ? []}:
4+, patches ? [] }:
5+
6+let
7+ inherit (darwin.apple_sdk.frameworks) CoreFoundation;
8+in
59
610rustPlatform.buildRustPackage rec {
711 name = "cargo-${version}";
@@ -21,13 +25,17 @@ rustPlatform.buildRustPackage rec {
2125
2226 nativeBuildInputs = [ pkgconfig ];
2327 buildInputs = [ file curl python openssl cmake zlib makeWrapper libgit2 ]
24− # FIXME: Use impure version of CoreFoundation because of missing symbols.
25− # CFURLSetResourcePropertyForKey is defined in the headers but there's no
26− # corresponding implementation in the sources from opensource.apple.com.
27− ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.CoreFoundation libiconv ];
28+ ++ stdenv.lib.optionals stdenv.isDarwin [ CoreFoundation libiconv ];
2829
2930 LIBGIT2_SYS_USE_PKG_CONFIG=1;
3031
32+ # FIXME: Use impure version of CoreFoundation because of missing symbols.
33+ # CFURLSetResourcePropertyForKey is defined in the headers but there's no
34+ # corresponding implementation in the sources from opensource.apple.com.
35+ preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
36+ export NIX_CFLAGS_COMPILE="-F${CoreFoundation}/Library/Frameworks $NIX_CFLAGS_COMPILE"
37+ '';
38+
3139 postInstall = ''
3240 # NOTE: We override the `http.cainfo` option usually specified in
3341 # `.cargo/config`. This is an issue when users want to specify
@@ -36,8 +44,7 @@ rustPlatform.buildRustPackage rec {
3644 wrapProgram "$out/bin/cargo" \
3745 --suffix PATH : "${rustc}/bin" \
3846 --set CARGO_HTTP_CAINFO "${cacert}/etc/ssl/certs/ca-bundle.crt" \
39− --set SSL_CERT_FILE "${cacert}/etc/ssl/certs/ca-bundle.crt" \
40− ${stdenv.lib.optionalString stdenv.isDarwin ''--suffix DYLD_LIBRARY_PATH : "${rustc}/lib"''}
47+ --set SSL_CERT_FILE "${cacert}/etc/ssl/certs/ca-bundle.crt"
4148 '';
4249
4350 checkPhase = ''
pkgs/development/compilers/rust/default.nix+2−2
@@ -6,7 +6,7 @@
66
77let
88 rustPlatform = recurseIntoAttrs (makeRustPlatform (callPackage ./bootstrap.nix {}));
9− version = "1.20.0";
9+ version = "1.21.0";
1010in
1111rec {
1212 rustc = callPackage ./rustc.nix {
@@ -18,7 +18,7 @@ rec {
1818
1919 src = fetchurl {
2020 url = "https://static.rust-lang.org/dist/rustc-${version}-src.tar.gz";
21− sha256 = "0542y4rnzlsrricai130mqyxl8r6rd991frb4qsnwb27yigqg91a";
21+ sha256 = "1yj8lnxybjrybp00fqhxw8fpr641dh8wcn9mk44xjnsb4i1c21qp";
2222 };
2323
2424 patches = [
pkgs/development/libraries/libmsgpack/1.4.nixdeleted−12
@@ -1,12 +0,0 @@
1−{ callPackage, fetchFromGitHub, ... } @ args:
2−
3−callPackage ./generic.nix (args // rec {
4− version = "1.4.2";
5−
6− src = fetchFromGitHub {
7− owner = "msgpack";
8− repo = "msgpack-c";
9− rev = "cpp-${version}";
10− sha256 = "0zlanifi5hmm303pzykpidq5jbapl891zwkwhkllfn8ab1jvzbaa";
11− };
12−})
pkgs/development/libraries/libmsgpack/2.0.nixdeleted−12
@@ -1,12 +0,0 @@
1−{ callPackage, fetchFromGitHub, ... } @ args:
2−
3−callPackage ./generic.nix (args // rec {
4− version = "2.0.0";
5−
6− src = fetchFromGitHub {
7− owner = "msgpack";
8− repo = "msgpack-c";
9− rev = "cpp-${version}";
10− sha256 = "189m44pwpcpf7g4yhzfla4djqyp2kl54wxmwfaj94gwgj5s370i7";
11− };
12−})
pkgs/development/tools/misc/ycmd/default.nix+3−3
@@ -7,12 +7,12 @@
77
88stdenv.mkDerivation rec {
99 name = "ycmd-${version}";
10− version = "2017-03-27";
10+ version = "2017-11-05";
1111
1212 src = fetchgit {
1313 url = "git://github.com/Valloric/ycmd.git";
14− rev = "2ef1ae0d00a06a47fed3aacfd465a310e8bdb0d2";
15− sha256 = "0p5knlxgy66zi229ns1lfdhz5lram93vahmmk54w98fr3h8b1yfj";
14+ rev = "0ca16e7ba3a9078b697befdce64104e61829aa3b";
15+ sha256 = "0bs94iv521ac2n53n3k8mw3s6v0hi3hhxhjsr0ips3n99al8wndi";
1616 };
1717
1818 buildInputs = [ cmake boost ]
pkgs/development/tools/misc/ycmd/dont-symlink-clang.patch+28−11
@@ -1,16 +1,33 @@
11diff --git a/cpp/ycm/CMakeLists.txt b/cpp/ycm/CMakeLists.txt
2−index 00e4882..8f29797 100644
2+index 133c987a..33625271 100644
33--- a/cpp/ycm/CMakeLists.txt
44+++ b/cpp/ycm/CMakeLists.txt
5−@@ -310,11 +310,6 @@ if ( EXTERNAL_LIBCLANG_PATH OR USE_SYSTEM_LIBCLANG )
6− # our libraries require, in particular the Python one (from pyenv for
7− # instance).
8− set( CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE )
9−- # When loading our library, the dynamic linker will look for
10−- # libclang.so.4, not libclang.so.4.x.
11−- file( RENAME
12−- ${EXTERNAL_LIBCLANG_PATH}.${CLANG_MAJOR_VERSION}.${CLANG_MINOR_VERSION}
13−- ${EXTERNAL_LIBCLANG_PATH}.${CLANG_MAJOR_VERSION} )
14− endif()
5+@@ -359,28 +359,6 @@ if( LIBCLANG_TARGET )
6+ POST_BUILD
7+ COMMAND ${CMAKE_COMMAND} -E copy "${PATH_TO_LLVM_ROOT}/bin/libclang.dll" "$<TARGET_FILE_DIR:${PROJECT_NAME}>"
8+ )
9+- else()
10+- add_custom_command(
11+- TARGET ${PROJECT_NAME}
12+- POST_BUILD
13+- COMMAND ${CMAKE_COMMAND} -E copy "${LIBCLANG_TARGET}" "$<TARGET_FILE_DIR:${PROJECT_NAME}>"
14+- )
15+-
16+- if( NOT APPLE )
17+- # When loading our library, the dynamic linker may look for
18+- # libclang.so.x instead of libclang.so.x.y. Create the corresponding
19+- # symlink.
20+- get_filename_component( LIBCLANG_NAME ${LIBCLANG_TARGET} NAME )
21+- string( REGEX REPLACE "([^.]+).([0-9]+).([0-9]+)$" "\\1.\\2"
22+- LIBCLANG_SONAME ${LIBCLANG_NAME} )
23+- add_custom_command(
24+- TARGET ${PROJECT_NAME}
25+- POST_BUILD
26+- COMMAND ${CMAKE_COMMAND} -E create_symlink
27+- "${LIBCLANG_NAME}"
28+- "$<TARGET_FILE_DIR:${PROJECT_NAME}>/${LIBCLANG_SONAME}"
29+- )
30+- endif()
1531 endif()
32+ endif()
1633
pkgs/top-level/all-packages.nix+3−5
@@ -6765,9 +6765,9 @@ with pkgs;
67656765
67666766 self = callPackage_i686 ../development/interpreters/self { };
67676767
6768− spark = spark_21;
6768+ spark = spark_22;
67696769 spark_16 = callPackage ../applications/networking/cluster/spark { version = "1.6.3"; };
6770− spark_21 = callPackage ../applications/networking/cluster/spark { version = "2.1.0"; };
6770+ spark_22 = callPackage ../applications/networking/cluster/spark { version = "2.2.0"; };
67716771
67726772 spidermonkey_1_8_5 = callPackage ../development/interpreters/spidermonkey/1.8.5.nix { };
67736773 spidermonkey_17 = callPackage ../development/interpreters/spidermonkey/17.nix { };
@@ -7738,7 +7738,7 @@ with pkgs;
77387738
77397739 ycmd = callPackage ../development/tools/misc/ycmd {
77407740 inherit (darwin.apple_sdk.frameworks) Cocoa;
7741− llvmPackages = llvmPackages_4;
7741+ llvmPackages = llvmPackages_5;
77427742 python = python2;
77437743 };
77447744
@@ -9273,8 +9273,6 @@ with pkgs;
92739273 libmtp = callPackage ../development/libraries/libmtp { };
92749274
92759275 libmsgpack = callPackage ../development/libraries/libmsgpack { };
9276− libmsgpack_2_0 = callPackage ../development/libraries/libmsgpack/2.0.nix { };
9277− libmsgpack_1_4 = callPackage ../development/libraries/libmsgpack/1.4.nix { };
92789276
92799277 libmysqlconnectorcpp = callPackage ../development/libraries/libmysqlconnectorcpp {
92809278 mysql = mysql57;