diff options
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/compilers/ghc/head.nix | 10 | ||||
-rw-r--r-- | pkgs/development/compilers/rust/beta.nix | 7 | ||||
-rw-r--r-- | pkgs/development/compilers/rust/bootstrap.nix | 10 | ||||
-rw-r--r-- | pkgs/development/compilers/rust/default.nix | 16 | ||||
-rw-r--r-- | pkgs/development/compilers/rust/head.nix | 10 | ||||
-rw-r--r-- | pkgs/development/compilers/rust/patches/tcp-stress-test-run-a-smaller-number-of-threads.patch | 44 | ||||
-rw-r--r-- | pkgs/development/compilers/rust/rustc.nix | 15 | ||||
-rw-r--r-- | pkgs/development/libraries/loadcaffe/default.nix | 19 | ||||
-rw-r--r-- | pkgs/development/libraries/poppler/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/libraries/torch/default.nix | 24 | ||||
-rw-r--r-- | pkgs/development/python-modules/dbus/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/tools/leaps/default.nix | 1 | ||||
-rw-r--r-- | pkgs/development/tools/rust/rustfmt/default.nix | 8 |
13 files changed, 78 insertions, 94 deletions
diff --git a/pkgs/development/compilers/ghc/head.nix b/pkgs/development/compilers/ghc/head.nix index 0f3b57949b7a..eebdaca5f83c 100644 --- a/pkgs/development/compilers/ghc/head.nix +++ b/pkgs/development/compilers/ghc/head.nix @@ -6,18 +6,18 @@ let inherit (bootPkgs) ghc; in stdenv.mkDerivation rec { - version = "7.11.20151216"; + version = "8.1.20160826"; name = "ghc-${version}"; - rev = "28638dfe79e915f33d75a1b22c5adce9e2b62b97"; + rev = "0050aff22ba04baca732bf5124002417ab667f8a"; src = fetchgit { url = "git://git.haskell.org/ghc.git"; inherit rev; - sha256 = "0rjzkzn0hz1vdnjikcbwfs5ggs8r3y4gqxfdn4jzfp45gx94wiwv"; + sha256 = "1iirb11fr8914pb6i988cfji56gs698ll819bgb0hpcdkrmffwqc"; }; patches = [ - ./ghc-7.x-dont-pass-linker-flags-via-response-files.patch # https://github.com/NixOS/nixpkgs/issues/10752 + ./ghc-8.x-dont-pass-linker-flags-via-response-files.patch # https://github.com/NixOS/nixpkgs/issues/10752 ]; postUnpack = '' @@ -42,7 +42,7 @@ in stdenv.mkDerivation rec { ''; configureFlags = [ - "--with-gcc=${stdenv.cc}/bin/cc" + "--with-cc=${stdenv.cc}/bin/cc" "--with-gmp-includes=${gmp.dev}/include" "--with-gmp-libraries=${gmp.out}/lib" "--with-curses-includes=${ncurses.dev}/include" "--with-curses-libraries=${ncurses.out}/lib" ] ++ stdenv.lib.optional stdenv.isDarwin [ diff --git a/pkgs/development/compilers/rust/beta.nix b/pkgs/development/compilers/rust/beta.nix index 130b3311cc58..2414480dda8b 100644 --- a/pkgs/development/compilers/rust/beta.nix +++ b/pkgs/development/compilers/rust/beta.nix @@ -3,12 +3,11 @@ rec { rustc = callPackage ./rustc.nix { - shortVersion = "beta-1.11.0"; + shortVersion = "beta-2016-08-17"; forceBundledLLVM = false; - needsCmake = true; configureFlags = [ "--release-channel=beta" ]; - srcRev = "9333c420da0da6291740c313d5af3d620b55b8bc"; - srcSha = "05z6i4s5jjw3c5ypap6kzxk81bg4dib47h51znvsvcvr0svsnkgs"; + srcRev = "822166b842e4d0b32fafc8b077fb927ec281253d"; + srcSha = "1zkv7hyjvcj7kvbngf309skgllk6rd7727a6hkvhd3hg8jlz0d00"; patches = [ ./patches/disable-lockfile-check.patch ] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch; diff --git a/pkgs/development/compilers/rust/bootstrap.nix b/pkgs/development/compilers/rust/bootstrap.nix index 1ced865fc909..e7cc7b15627e 100644 --- a/pkgs/development/compilers/rust/bootstrap.nix +++ b/pkgs/development/compilers/rust/bootstrap.nix @@ -17,13 +17,13 @@ let # fetch hashes by running `print-hashes.sh 1.9.0` bootstrapHash = if stdenv.system == "i686-linux" - then "dd4d9bf1b9393867eb18d00431e8fb733894984f2c7b5154bc1b64d045077b45" + then "be93dd2b80a97f2877679950d56990628c6547b953294f16bf6d69c18a39edc0" else if stdenv.system == "x86_64-linux" - then "288ff13efa2577e81c77fc2cb6e2b49b1ed0ceab51b4fa12f7efb87039ac49b7" + then "f189303d52b37c8bb694b9d9739ae73ffa926cbdeffde1d5d6a5c6e811940293" else if stdenv.system == "i686-darwin" - then "4d4d4b256d6bd6ae2527cf61007b2553de200f0a1910b7ad41e4f51d2b21e536" + then "40d4782a58dd5bef22dbbaa7a363f3b42f844628db07205f6435ac934f350061" else if stdenv.system == "x86_64-darwin" - then "d59b5509e69c1cace20a57072e3b3ecefdbfd8c7e95657b0ff2ac10aa1dfebe6" + then "4bb71249f4afd7cee07f63d681f9fcb1b525ee3dfd49722adab7a40024e45af7" else throw "missing boostrap hash for platform ${stdenv.system}"; needsPatchelf = stdenv.isLinux; @@ -33,7 +33,7 @@ let sha256 = bootstrapHash; }; - version = "1.9.0"; + version = "1.10.0"; in rec { diff --git a/pkgs/development/compilers/rust/default.nix b/pkgs/development/compilers/rust/default.nix index bfab4453a349..9bbcb360e618 100644 --- a/pkgs/development/compilers/rust/default.nix +++ b/pkgs/development/compilers/rust/default.nix @@ -7,15 +7,17 @@ in rec { rustc = callPackage ./rustc.nix { - shortVersion = "1.10.0"; + shortVersion = "1.11.0"; isRelease = true; forceBundledLLVM = false; configureFlags = [ "--release-channel=stable" ]; - srcRev = "cfcb716cf0961a7e3a4eceac828d94805cf8140b"; - srcSha = "15i81ybh32xymmkyz3bkb5bdgi9hx8nb0sh00ac6qba6w8ljpii9"; + srcRev = "9b21dcd6a89f38e8ceccb2ede8c9027cb409f6e3"; + srcSha = "12djpxhwqvq3262ai9vd096bvriynci2mrwn0dfjrd0w6s0i8viy"; + patches = [ ./patches/disable-lockfile-check.patch ] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch; + inherit targets; inherit targetPatches; inherit targetToolchains; @@ -27,10 +29,10 @@ rec { # `http.cainfo` option from .cargo/config which isn't released # yet. - version = "master-2016-07-25"; - srcRev = "f09ef68cc47956ccc5f99212bdcdd15298c400a0"; - srcSha = "1r6q9jd0fl6mzhwkvrrcv358q2784hg51dfpy28xgh4n61m7c155"; - depsSha256 = "1p1ygabg9k9b0azm0mrx8asjzdi35c5zw53iysba198lli6bhdl4"; + version = "0.12.0"; + srcRev = "6b98d1f8abf5b33c1ca2771d3f5f3bafc3407b93"; + srcSha = "0pq6l3yzmh2il6320f6501hvp9iikdxzl34i5b52v93ncpim36bk"; + depsSha256 = "1jrwzm9fd15kf2d5zb17q901hx32h711ivcwdpxpmzwq08sjlcvl"; inherit rustc; # the rustc that will be wrapped by cargo inherit rustPlatform; # used to build cargo diff --git a/pkgs/development/compilers/rust/head.nix b/pkgs/development/compilers/rust/head.nix index 3406fdb317fa..2288a360a518 100644 --- a/pkgs/development/compilers/rust/head.nix +++ b/pkgs/development/compilers/rust/head.nix @@ -3,17 +3,13 @@ rec { rustc = callPackage ./rustc.nix { - shortVersion = "master-1.12.0"; + shortVersion = "master-1.13.0"; forceBundledLLVM = false; - needsCmake = true; configureFlags = [ "--release-channel=nightly" ]; - srcRev = "d9a911d236cbecb47775276ba51a5f9111bdbc9c"; - srcSha = "07wybqvnw99fljmcy33vb9iwirmp10cwy47n008p396s7pb852hv"; + srcRev = "308824acecf902f2b6a9c1538bde0324804ba68e"; + srcSha = "17zv1a27a7w6n3a22brriqx5m6i4s3nsj7mlnpliwghlbz8q7384"; patches = [ ./patches/disable-lockfile-check.patch - # Drop this patch after - # https://github.com/rust-lang/rust/pull/35140 gets merged - ./patches/tcp-stress-test-run-a-smaller-number-of-threads.patch ] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch; inherit targets; inherit targetPatches; diff --git a/pkgs/development/compilers/rust/patches/tcp-stress-test-run-a-smaller-number-of-threads.patch b/pkgs/development/compilers/rust/patches/tcp-stress-test-run-a-smaller-number-of-threads.patch deleted file mode 100644 index 1b1d62160f65..000000000000 --- a/pkgs/development/compilers/rust/patches/tcp-stress-test-run-a-smaller-number-of-threads.patch +++ /dev/null @@ -1,44 +0,0 @@ -From b6202b5d602ca8216febe8ce9078581faa32955e Mon Sep 17 00:00:00 2001 -From: Moritz Ulrich <moritz@tarn-vedra.de> -Date: Sat, 30 Jul 2016 09:01:13 +0200 -Subject: [PATCH] tcp-stress-test: Run a smaller number of threads. - ---- - src/test/run-pass/tcp-stress.rs | 7 +++++-- - 1 file changed, 5 insertions(+), 2 deletions(-) - -diff --git a/src/test/run-pass/tcp-stress.rs b/src/test/run-pass/tcp-stress.rs -index dfc8649..df8cdc9 100644 ---- a/src/test/run-pass/tcp-stress.rs -+++ b/src/test/run-pass/tcp-stress.rs -@@ -21,6 +21,8 @@ use std::sync::mpsc::channel; - use std::time::Duration; - use std::thread::{self, Builder}; - -+const TARGET_CNT: usize = 256; -+ - fn main() { - // This test has a chance to time out, try to not let it time out - thread::spawn(move|| -> () { -@@ -42,8 +44,9 @@ fn main() { - }); - - let (tx, rx) = channel(); -+ - let mut spawned_cnt = 0; -- for _ in 0..1000 { -+ for _ in 0..TARGET_CNT { - let tx = tx.clone(); - let res = Builder::new().stack_size(64 * 1024).spawn(move|| { - match TcpStream::connect(addr) { -@@ -66,6 +69,6 @@ fn main() { - for _ in 0..spawned_cnt { - rx.recv().unwrap(); - } -- assert_eq!(spawned_cnt, 1000); -+ assert_eq!(spawned_cnt, TARGET_CNT); - process::exit(0); - } --- -2.9.1 - diff --git a/pkgs/development/compilers/rust/rustc.nix b/pkgs/development/compilers/rust/rustc.nix index 85e842176f47..f8f0e6df0d84 100644 --- a/pkgs/development/compilers/rust/rustc.nix +++ b/pkgs/development/compilers/rust/rustc.nix @@ -2,7 +2,6 @@ , llvm, jemalloc, ncurses, darwin, binutils, rustPlatform, git, cmake, curl , isRelease ? false -, needsCmake ? false , shortVersion , forceBundledLLVM ? false , srcSha, srcRev @@ -81,7 +80,7 @@ stdenv.mkDerivation { # Fix the configure script to not require curl as we won't use it sed -i configure \ - -e '/probe_need CFG_CURLORWGET/d' + -e '/probe_need CFG_CURL curl/d' # Fix the use of jemalloc prefixes which our jemalloc doesn't have # TODO: reenable if we can figure out how to get our jemalloc to work @@ -92,7 +91,7 @@ stdenv.mkDerivation { rm -vr src/test/run-make/linker-output-non-utf8/ # Useful debugging parameter - #export VERBOSE=1 + # export VERBOSE=1 ''; preConfigure = '' @@ -101,14 +100,12 @@ stdenv.mkDerivation { configureFlagsArray+=("--infodir=$out/share/info") ''; - # New -beta and -unstable unfortunately need cmake for compiling - # llvm-rt but don't use it for the normal build. This disables cmake - # in Nix. - dontUseCmakeConfigure = needsCmake; + # rustc unfortunately need cmake for compiling llvm-rt but doesn't + # use it for the normal build. This disables cmake in Nix. + dontUseCmakeConfigure = true; # ps is needed for one of the test cases - nativeBuildInputs = [ file python2 procps rustPlatform.rust.rustc git ] - ++ stdenv.lib.optional needsCmake [ cmake curl ]; + nativeBuildInputs = [ file python2 procps rustPlatform.rust.rustc git cmake ]; buildInputs = [ ncurses ] ++ targetToolchains ++ optional (!forceBundledLLVM) llvmShared; diff --git a/pkgs/development/libraries/loadcaffe/default.nix b/pkgs/development/libraries/loadcaffe/default.nix new file mode 100644 index 000000000000..f0904726eedf --- /dev/null +++ b/pkgs/development/libraries/loadcaffe/default.nix @@ -0,0 +1,19 @@ +{stdenv, fetchFromGitHub, cmake, torch, protobuf, protobufc}: +stdenv.mkDerivation rec { + name = "loadcaffe-${version}"; + version = "0.0pre2016.08.01"; + buildInputs = [cmake torch protobuf protobufc]; + src = fetchFromGitHub { + owner = "szagoruyko"; + repo = "loadcaffe"; + rev = "9be65cf6fa08e9333eae3553f68a8082debe9978"; + sha256 = "0b22hvd9nvjsan2h93nl6y34kkkbs36d0k1zr3csjfb5l13xz0lh"; + }; + meta = { + inherit version; + description = ''Torch7 loader for Caffe networks''; + license = stdenv.lib.licenses.bsd2 ; + maintainers = [stdenv.lib.maintainers.raskin]; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/development/libraries/poppler/default.nix b/pkgs/development/libraries/poppler/default.nix index d3034449df3b..207b7a2ffab1 100644 --- a/pkgs/development/libraries/poppler/default.nix +++ b/pkgs/development/libraries/poppler/default.nix @@ -8,8 +8,8 @@ }: let # beware: updates often break cups-filters build - version = "0.46.0"; # even major numbers are stable - sha256 = "11z4d5vrrd0m7w9bfydwabksk273z7z0xf2nwvzf5pk17p8kazcn"; + version = "0.47.0"; # even major numbers are stable + sha256 = "0hnjkcqqk87dw3hlda4gh4l7brkslniax9a79g772jn3iwiffwmq"; in stdenv.mkDerivation rec { name = "poppler-${suffix}-${version}"; diff --git a/pkgs/development/libraries/torch/default.nix b/pkgs/development/libraries/torch/default.nix index 8700378ae75d..254c210a61ed 100644 --- a/pkgs/development/libraries/torch/default.nix +++ b/pkgs/development/libraries/torch/default.nix @@ -1,18 +1,32 @@ -{stdenv, fetchgit, luajit, openblas, imagemagick, cmake, curl, fftw, gnuplot, - libjpeg_turbo, zeromq3, ncurses, openssl, libpng, qt4, readline, unzip}: +{stdenv, fetchgit, luajit, openblas, imagemagick, cmake, curl, fftw, gnuplot + , libjpeg, zeromq3, ncurses, openssl, libpng, qt4, readline, unzip + , pkgconfig, zlib, libX11, which + }: stdenv.mkDerivation rec{ version = "0.0pre20160820"; name = "torch-${version}"; buildInputs = [ luajit openblas imagemagick cmake curl fftw gnuplot unzip qt4 - libjpeg_turbo zeromq3 ncurses openssl libpng readline + libjpeg zeromq3 ncurses openssl libpng readline pkgconfig + zlib libX11 which ]; src = fetchgit (stdenv.lib.importJSON ./src.json); - configurePhase = '' - ''; buildPhase = '' cd .. export PREFIX=$out + + include= + for i in $NIX_CFLAGS_COMPILE; do + if test -n "$include" && test -d "$i"; then + export CMAKE_INCLUDE_PATH="$CMAKE_INCLUDE_PATH''${CMAKE_INCLUDE_PATH:+:}$i" + fi; + if test "x$i" = "x-isystem"; then + include=1 + else + include= + fi + done + mkdir "$out" sh install.sh -s ''; diff --git a/pkgs/development/python-modules/dbus/default.nix b/pkgs/development/python-modules/dbus/default.nix index af2e6af0c826..e99a10ab1c40 100644 --- a/pkgs/development/python-modules/dbus/default.nix +++ b/pkgs/development/python-modules/dbus/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, python, pkgconfig, dbus, dbus_glib, dbus_tools, isPyPy -, ncurses }: +, ncurses, pygobject3 }: if isPyPy then throw "dbus-python not supported for interpreter ${python.executable}" else stdenv.mkDerivation rec { name = "dbus-python-1.2.4"; @@ -12,7 +12,7 @@ if isPyPy then throw "dbus-python not supported for interpreter ${python.executa postPatch = "patchShebangs ."; buildInputs = [ python pkgconfig dbus dbus_glib ] - ++ stdenv.lib.optional doCheck dbus_tools + ++ stdenv.lib.optionals doCheck [ dbus_tools pygobject3 ] # My guess why it's sometimes trying to -lncurses. # It seems not to retain the dependency anyway. ++ stdenv.lib.optional (! python ? modules) ncurses; diff --git a/pkgs/development/tools/leaps/default.nix b/pkgs/development/tools/leaps/default.nix index c80861b2fd75..d3e820767884 100644 --- a/pkgs/development/tools/leaps/default.nix +++ b/pkgs/development/tools/leaps/default.nix @@ -21,5 +21,6 @@ buildGoPackage rec { license = "MIT"; maintainers = with stdenv.lib.maintainers; [ qknight ]; meta.platforms = stdenv.lib.platforms.linux; + broken = true; }; } diff --git a/pkgs/development/tools/rust/rustfmt/default.nix b/pkgs/development/tools/rust/rustfmt/default.nix index 5e661a8afb8f..32a4eafc02c7 100644 --- a/pkgs/development/tools/rust/rustfmt/default.nix +++ b/pkgs/development/tools/rust/rustfmt/default.nix @@ -4,16 +4,16 @@ with rustPlatform; buildRustPackage rec { name = "rustfmt-${version}"; - version = "0.4"; + version = "0.6"; src = fetchFromGitHub { owner = "rust-lang-nursery"; repo = "rustfmt"; - rev = "19768da5c97c108a05e6f545b73ba4b76d1b1788"; - sha256 = "0f2m0gvlqlybcjl2xqwxlp5hjkhd30kx25dq56k5x0r3808ijksg"; + rev = "d022f05f340b9aa4956ca315f5e424a6d3ab3248"; + sha256 = "1w6ll3802061wbggqhk31pmzws423qm7jc4hyxk8a6pf9ksp0nk5"; }; - depsSha256 = "1lbcpvp7xhyl96w7jfd18w6py60nwllr93jna5j33zvnip61cpf5"; + depsSha256 = "13rrhgzxxx5gwpwvyxw03m5xng9c1xyaycmqpi123ma3ps5822jf"; meta = with stdenv.lib; { description = "A tool for formatting Rust code according to style guidelines"; |