Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c0fcb53d9b0c
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 85289edbd9ff
Choose a head ref

Commits on Oct 1, 2019

  1. python3Packages.pytaglib: fix build

    Applied several patches to fix the test suite on python 2.7 and to
    properly install the `pyprinttags` executable. Also switched to the
    GitHub source for now as the PyPI tarball was wrongly packaged and
    didn't contain the `pyprinttags.py` script (see the last two patches for
    further reference).
    
    See also https://hydra.nixos.org/build/102493330
    
    ZHF #68361
    
    (cherry picked from commit c7164ea)
    Ma27 committed Oct 1, 2019
    Copy the full SHA
    e61638d View commit details
  2. Copy the full SHA
    4c50dc3 View commit details
  3. linux: 5.2.17 -> 5.2.18

    NeQuissimus committed Oct 1, 2019
    Copy the full SHA
    2a66f18 View commit details
  4. linux: 5.3.1 -> 5.3.2

    NeQuissimus committed Oct 1, 2019
    Copy the full SHA
    1e3be23 View commit details
  5. transifex-client: Add missing setuptools dependency

    (cherry picked from commit d1a8006)
    etu committed Oct 1, 2019
    Copy the full SHA
    d7c9be9 View commit details
  6. nexcloud: 16.0.4 -> 16.0.5

    (cherry picked from commit 70d0887)
    Vskilet authored and Ma27 committed Oct 1, 2019
    Copy the full SHA
    000a910 View commit details
  7. lib: Add armv7a-linux to doubles.nix

    This is needed for android.
    Ericson2314 committed Oct 1, 2019
    Copy the full SHA
    3098d65 View commit details
  8. svgbob: fix build

    See https://hydra.nixos.org/build/102480738
    
    Bumping to latest version (which is 0.4.2 according to Cargo.lock) fixes
    the build error. As no dependency changes happened, cargoSha256 doesn't
    need to be updated.
    
    ZHF #68361
    
    (cherry picked from commit b5204d9)
    Ma27 committed Oct 1, 2019
    Copy the full SHA
    2fc4fab View commit details
  9. Merge pull request #70195 from obsidiansystems/lib-more-arm

    lib: Add armv7a-linux to doubles.nix
    matthewbauer authored Oct 1, 2019
    Copy the full SHA
    c6de3b0 View commit details
  10. riot-web: 1.4.0 -> 1.4.1

    (cherry picked from commit bdd8693)
    pacien authored and Ma27 committed Oct 1, 2019
    Copy the full SHA
    e326c4f View commit details
  11. riot-desktop: 1.4.0 -> 1.4.1

    (cherry picked from commit 7a82c74)
    pacien authored and Ma27 committed Oct 1, 2019
    Copy the full SHA
    445ea37 View commit details
  12. grafana: 6.3.6 -> 6.4.0

    (cherry picked from commit 79b9909)
    WilliButz authored and Ma27 committed Oct 1, 2019
    Copy the full SHA
    d1ab891 View commit details
  13. buildBazelPackage: remove rules_cc

    It's a new builtin dependency from Bazel 0.29.
    
    (cherry picked from commit 280f17c)
    abbradar committed Oct 1, 2019
    Copy the full SHA
    e97e6ae View commit details
  14. owncloud-client: Use qt5's own mkDerivation (#70187)

    (cherry picked from commit e120e00)
    
    cc #70187
    tobiasBora authored and veprbl committed Oct 1, 2019
    Copy the full SHA
    9d4759d View commit details

Commits on Oct 2, 2019

  1. Merge pull request #70183 from etu/1909-transifex-client-setuptools

    [19.09] transifex-client: Add missing setuptools dependency
    worldofpeace authored Oct 2, 2019
    Copy the full SHA
    584181e View commit details
  2. kwallet-pam: wrap pam_kwallet_init

    This needs a compatible env as kwalletd daemon. Need to wrap it to
    correct this.
    
    Fixes #68316
    
    (cherry picked from commit a296cc2)
    matthewbauer authored and worldofpeace committed Oct 2, 2019
    Copy the full SHA
    d079834 View commit details
  3. pythonPackage.cli-helpers: disable python2 tests

    ZHF #68361
    
    (cherry picked from commit 7eed92a)
    Signed-off-by: Jonathan Ringer <jonringer117@gmail.com>
    Jonathan Ringer committed Oct 2, 2019
    Copy the full SHA
    15bc013 View commit details
  4. pythonPackages.pyrsistent: 0.15.2 -> 0.15.4

    ZHF #68361
    
    (cherry picked from commit 0f8d112)
    Signed-off-by: Jonathan Ringer <jonringer117@gmail.com>
    adisbladis authored and Jonathan Ringer committed Oct 2, 2019
    Copy the full SHA
    20e214b View commit details
  5. nvidia-x11: Make vulkan library path absolute for >= 435.

    The original file contains just a library name, which does not work when LD_LIBRARY_PATH does not contain /run/opengl-driver/lib, as is the case in unstable NixOS.
    
    Fixes NixOS/nixpkgs#69264
    
    (cherry picked from commit d156b2b)
    ambrop72 authored and abbradar committed Oct 2, 2019
    Copy the full SHA
    8aac337 View commit details
  6. exim: 4.92.2 -> 4.92.3

    security update: CVE-2019-16928
    
    (cherry picked from commit aaa1ba3)
    
    cc #70074
    pacien authored and fpletz committed Oct 2, 2019
    Copy the full SHA
    59211d5 View commit details
  7. tensorflow: fix CUDA build using wrong GCC

    (cherry picked from commit 46b7933)
    abbradar committed Oct 2, 2019
    Copy the full SHA
    be0688d View commit details
  8. libtensorflow: add meta

    (cherry picked from commit 4947ddf)
    abbradar committed Oct 2, 2019
    Copy the full SHA
    433022f View commit details
  9. tensorflow: add OpenGL path to find libcudart

    (cherry picked from commit 1c429ac)
    abbradar committed Oct 2, 2019
    Copy the full SHA
    bb7c495 View commit details
  10. Copy the full SHA
    0c02d01 View commit details
  11. ruby_2_5: 2.5.6 -> 2.5.7

    marsam authored and alyssais committed Oct 2, 2019
    Copy the full SHA
    cb9cea0 View commit details
  12. ruby_2_6: 2.6.4 -> 2.6.5

    marsam authored and alyssais committed Oct 2, 2019
    Copy the full SHA
    85289ed View commit details
2 changes: 1 addition & 1 deletion lib/systems/doubles.nix
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ let

all = [
"aarch64-linux"
"armv5tel-linux" "armv6l-linux" "armv7l-linux"
"armv5tel-linux" "armv6l-linux" "armv7a-linux" "armv7l-linux"

"mipsel-linux"

4 changes: 2 additions & 2 deletions lib/tests/systems.nix
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ let
in with lib.systems.doubles; lib.runTests {
testall = mseteq all (linux ++ darwin ++ freebsd ++ openbsd ++ netbsd ++ illumos ++ wasi ++ windows ++ embedded);

testarm = mseteq arm [ "armv5tel-linux" "armv6l-linux" "armv7l-linux" "arm-none" "armv7a-darwin" ];
testarm = mseteq arm [ "armv5tel-linux" "armv6l-linux" "armv7a-linux" "armv7l-linux" "arm-none" "armv7a-darwin" ];
testi686 = mseteq i686 [ "i686-linux" "i686-freebsd" "i686-netbsd" "i686-openbsd" "i686-cygwin" "i686-windows" "i686-none" "i686-darwin" ];
testmips = mseteq mips [ "mipsel-linux" ];
testx86_64 = mseteq x86_64 [ "x86_64-linux" "x86_64-darwin" "x86_64-freebsd" "x86_64-openbsd" "x86_64-netbsd" "x86_64-cygwin" "x86_64-solaris" "x86_64-windows" "x86_64-none" ];
@@ -24,7 +24,7 @@ in with lib.systems.doubles; lib.runTests {
testfreebsd = mseteq freebsd [ "i686-freebsd" "x86_64-freebsd" ];
testgnu = mseteq gnu (linux /* ++ kfreebsd ++ ... */);
testillumos = mseteq illumos [ "x86_64-solaris" ];
testlinux = mseteq linux [ "aarch64-linux" "armv5tel-linux" "armv6l-linux" "armv7l-linux" "i686-linux" "mipsel-linux" "riscv32-linux" "riscv64-linux" "x86_64-linux" "powerpc64le-linux" ];
testlinux = mseteq linux [ "aarch64-linux" "armv5tel-linux" "armv6l-linux" "armv7a-linux" "armv7l-linux" "i686-linux" "mipsel-linux" "riscv32-linux" "riscv64-linux" "x86_64-linux" "powerpc64le-linux" ];
testnetbsd = mseteq netbsd [ "i686-netbsd" "x86_64-netbsd" ];
testopenbsd = mseteq openbsd [ "i686-openbsd" "x86_64-openbsd" ];
testwindows = mseteq windows [ "i686-cygwin" "x86_64-cygwin" "i686-windows" "x86_64-windows" ];
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
"name": "riot-web",
"productName": "Riot",
"main": "src/electron-main.js",
"version": "1.4.0",
"version": "1.4.1",
"description": "A feature-rich client for Matrix.org",
"author": "New Vector Ltd.",
"dependencies": {
Original file line number Diff line number Diff line change
@@ -6,12 +6,12 @@

let
executableName = "riot-desktop";
version = "1.4.0";
version = "1.4.1";
riot-web-src = fetchFromGitHub {
owner = "vector-im";
repo = "riot-web";
rev = "v${version}";
sha256 = "1p8bl7v2214shywn53fpcb27vvvdjrs3kcys3f045v2l5fg5xhsa";
sha256 = "0w4w39smak6hp65vam5rrz6l48rb4yzszzyn1yjhr1m8w8j9bvfl";
};

in yarn2nix-moretea.mkYarnPackage rec {
Original file line number Diff line number Diff line change
@@ -5,11 +5,11 @@

stdenv.mkDerivation rec {
pname = "riot-web";
version = "1.4.0";
version = "1.4.1";

src = fetchurl {
url = "https://github.com/vector-im/riot-web/releases/download/v${version}/riot-v${version}.tar.gz";
sha256 = "1si11hxkfn6sqaq1hddm5vkfrd0pghzwqld1wv4vxlb5jyn32qqk";
sha256 = "16lgxyqxs6vpjcfdr4j7gnn7h8gyi6b5520b8nq8hxynh24iyhcq";
};

installPhase = let
4 changes: 2 additions & 2 deletions pkgs/applications/networking/owncloud-client/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv, fetchurl, cmake, pkgconfig, qtbase, qtwebkit, qtkeychain, sqlite }:
{ stdenv, fetchurl, mkDerivation, cmake, pkgconfig, qtbase, qtwebkit, qtkeychain, sqlite }:

stdenv.mkDerivation rec {
mkDerivation rec {
pname = "owncloud-client";
version = "2.5.4.11654";

1 change: 1 addition & 0 deletions pkgs/build-support/build-bazel-package/default.nix
Original file line number Diff line number Diff line change
@@ -60,6 +60,7 @@ in stdenv.mkDerivation (fBuildAttrs // {
# Remove all built in external workspaces, Bazel will recreate them when building
rm -rf $bazelOut/external/{bazel_tools,\@bazel_tools.marker}
rm -rf $bazelOut/external/{rules_cc,\@rules_cc.marker}
rm -rf $bazelOut/external/{embedded_jdk,\@embedded_jdk.marker}
rm -rf $bazelOut/external/{local_*,\@local_*.marker}
4 changes: 4 additions & 0 deletions pkgs/desktops/plasma-5/kwallet-pam.nix
Original file line number Diff line number Diff line change
@@ -7,4 +7,8 @@ mkDerivation {
postPatch = ''
sed -i pam_kwallet_init -e "s|socat|${lib.getBin socat}/bin/socat|"
'';
postFixup = ''
wrapQtApp $out/libexec/pam_kwallet_init
'';
dontWrapQtApps = true;
}
18 changes: 9 additions & 9 deletions pkgs/development/interpreters/ruby/default.nix
Original file line number Diff line number Diff line change
@@ -212,26 +212,26 @@ let

in {
ruby_2_4 = generic {
version = rubyVersion "2" "4" "7" "";
version = rubyVersion "2" "4" "9" "";
sha256 = {
src = "12cbyf7zai8mi3mxffm5ynq3mmkcbvs7kb1bbrs259m61irgqvnd";
git = "1dgch9xz4wdcncb6pf2dvijm10yk6mbw2wfdrj7d3wazrjzh305z";
src = "1bn6n5b920qy3lsx99jr8495jkc3sg89swgb96d5fgd579g6p6zr";
git = "066kb1iki7mx7qkm10xhj5b6v8s47wg68v43l3nc36y2hyim1w2c";
};
};

ruby_2_5 = generic {
version = rubyVersion "2" "5" "6" "";
version = rubyVersion "2" "5" "7" "";
sha256 = {
src = "19xy6rf138ys4qycv0ibsycqwbjmf1j6iv9plw9cs81hcxnd0zhx";
git = "067gyy7149m6vk9dfyx22mghm2gbgy7snfa7df4ddrvr1pqffqmz";
src = "1m6nmnj9shifp8g3yh7aimac01vl035bzcc19x2spdji6ig0sb8b";
git = "0wppf82c9ccdbnvj30mppr5a3mc7sxm05diahjdw7hhk29n43knp";
};
};

ruby_2_6 = generic {
version = rubyVersion "2" "6" "4" "";
version = rubyVersion "2" "6" "5" "";
sha256 = {
src = "0dvrw4g2igvjclxk9bmb9pf6mzxwm22zqvqa0abkfnshfnxdihag";
git = "1h4z66amjykpzl6lxx6yad2yfpwnwix4sw19bd96jnwg248kviqf";
src = "0zgdrgylq6avbblf78kpaf0k2xnkpc3jng3wkd7x67ycdrqnp5v6";
git = "0pay6ic22ag3bnvxffhgwp7z6clkd0p93944a1l4lvc5hxc8v77j";
};
};
}
11 changes: 3 additions & 8 deletions pkgs/development/interpreters/ruby/patchsets.nix
Original file line number Diff line number Diff line change
@@ -6,22 +6,17 @@
"${patchSet}/patches/ruby/2.3/head/railsexpress/02-improve-gc-stats.patch"
"${patchSet}/patches/ruby/2.3/head/railsexpress/03-display-more-detailed-stack-trace.patch"
];
"2.4.7" = ops useRailsExpress [
"2.4.9" = ops useRailsExpress [
"${patchSet}/patches/ruby/2.4/head/railsexpress/01-skip-broken-tests.patch"
"${patchSet}/patches/ruby/2.4/head/railsexpress/02-improve-gc-stats.patch"
"${patchSet}/patches/ruby/2.4/head/railsexpress/03-display-more-detailed-stack-trace.patch"
];
"2.5.6" = ops useRailsExpress [
"2.5.7" = ops useRailsExpress [
"${patchSet}/patches/ruby/2.5/head/railsexpress/01-fix-broken-tests-caused-by-ad.patch"
"${patchSet}/patches/ruby/2.5/head/railsexpress/02-improve-gc-stats.patch"
"${patchSet}/patches/ruby/2.5/head/railsexpress/03-more-detailed-stacktrace.patch"
];
"2.6.4" = [
(fetchpatch {
url = "https://git.ruby-lang.org/ruby.git/patch/?id=ade1283ca276f7d589ffd3539fbc7b9817f682d5";
sha256 = "1vgrckmzz0ykyxgzyp8fcifa93xz2hvyfil79bw1gc3xx94wnnxd";
})
] ++ ops useRailsExpress [
"2.6.5" = ops useRailsExpress [
"${patchSet}/patches/ruby/2.6/head/railsexpress/01-fix-broken-tests-caused-by-ad.patch"
"${patchSet}/patches/ruby/2.6/head/railsexpress/02-improve-gc-stats.patch"
"${patchSet}/patches/ruby/2.6/head/railsexpress/03-more-detailed-stacktrace.patch"
7 changes: 6 additions & 1 deletion pkgs/development/libraries/science/math/tensorflow/bin.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv
, fetchurl
, patchelf
, addOpenGLRunpath
, cudaSupport ? false, symlinkJoin, cudatoolkit, cudnn, nvidia_x11
}:

@@ -35,6 +35,9 @@ let
else ''
patchelf --set-rpath "${rpath}:$out/lib" $out/lib/libtensorflow.so
patchelf --set-rpath "${rpath}" $out/lib/libtensorflow_framework.so
${optionalString cudaSupport ''
addOpenGLRunpath $out/lib/libtensorflow.so $out/lib/libtensorflow_framework.so
''}
'';

in stdenv.mkDerivation rec {
@@ -43,6 +46,8 @@ in stdenv.mkDerivation rec {

src = fetchurl url;

nativeBuildInputs = optional cudaSupport addOpenGLRunpath;

# Patch library to use our libc, libstdc++ and others
buildCommand = ''
mkdir -pv $out
16 changes: 8 additions & 8 deletions pkgs/development/python-modules/cli-helpers/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{ lib
, buildPythonPackage
, fetchPypi
{ lib, buildPythonPackage, fetchPypi, isPy27
, backports_csv
, configobj
, terminaltables
, mock
, pytest
, tabulate
, backports_csv
, terminaltables
, wcwidth
, pytest
, mock
, isPy27
}:

buildPythonPackage rec {
@@ -27,6 +24,9 @@ buildPythonPackage rec {
wcwidth
] ++ (lib.optionals isPy27 [ backports_csv ]);

# namespace collision between backport.csv and backports.configparser
doCheck = !isPy27;

checkInputs = [ pytest mock ];

checkPhase = ''
8 changes: 4 additions & 4 deletions pkgs/development/python-modules/pyrsistent/default.nix
Original file line number Diff line number Diff line change
@@ -2,23 +2,23 @@
, buildPythonPackage
, fetchPypi
, six
, pytest
, pytest_4
, hypothesis
, pytestrunner
}:

buildPythonPackage rec {
pname = "pyrsistent";
version = "0.15.2";
version = "0.15.4";

src = fetchPypi {
inherit pname version;
sha256 = "0fjwnxg7q1b02j7hk1wqm5xdn7wck9j2g3ggkkizab6l77kjws8n";
sha256 = "0cv5xvhfhlj88pb0ghdwivkfcmgi6503qjwxx4r6n06nd6hpzd1l";
};

propagatedBuildInputs = [ six ];

checkInputs = [ pytestrunner pytest hypothesis ];
checkInputs = [ pytestrunner pytest_4 hypothesis ];

meta = with stdenv.lib; {
homepage = https://github.com/tobgu/pyrsistent/;
33 changes: 29 additions & 4 deletions pkgs/development/python-modules/pytaglib/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,46 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, taglib
, cython
, pytest
, glibcLocales
, fetchpatch
}:

buildPythonPackage rec {
pname = "pytaglib";
version = "1.4.5";

src = fetchPypi {
inherit pname version;
sha256 = "8aec64bc146a9f72778a0d2d1f3448f58be6ebea68f64b0ff88ea8e0f4dc5d8f";
src = fetchFromGitHub {
owner = "supermihi";
repo = pname;
rev = "v${version}";
sha256 = "1gvvadlgk8ny8bg76gwvvfcwp1nfgrjphi60h5f9ha7h5ff1g2wb";
};

patches = [
# fix tests on python 2.7
(fetchpatch {
url = https://github.com/supermihi/pytaglib/commit/0c4ae750fcd5b18d2553975c7e3e183e9dca5bf1.patch;
sha256 = "1kv3c68vimx5dc8aacvzphiaq916avmprxddi38wji8p2ql6vngj";
})

# properly install pyprinttags
(fetchpatch {
url = https://github.com/supermihi/pytaglib/commit/ba7a1406ddf35ddc41ed57f1c8d1f2bc2ed2c93a.patch;
sha256 = "0pi0dcq7db5fd3jnbwnfsfsgxvlhnm07z5yhpp93shk0s7ci2bwp";
})
(fetchpatch {
url = https://github.com/supermihi/pytaglib/commit/28772f6f94d37f05728071381a0fa04c6a14783a.patch;
sha256 = "0h259vzj1l0gpibdf322yclyd10x5rh1anzhsjj2ghm6rj6q0r0m";
})
];

postPatch = ''
substituteInPlace setup.py --replace "'pytest-runner', " ""
'';

buildInputs = [ taglib cython ];

checkInputs = [ pytest glibcLocales ];
10 changes: 9 additions & 1 deletion pkgs/development/python-modules/tensorflow/bin.nix
Original file line number Diff line number Diff line change
@@ -26,6 +26,7 @@
, symlinkJoin
, keras-applications
, keras-preprocessing
, addOpenGLRunpath
}:

# We keep this binary build for two reasons:
@@ -76,6 +77,8 @@ in buildPythonPackage {
] ++ lib.optional (!isPy3k) mock
++ lib.optionals (pythonOlder "3.4") [ backports_weakref ];

nativeBuildInputs = lib.optional cudaSupport addOpenGLRunpath;

# Upstream has a pip hack that results in bin/tensorboard being in both tensorflow
# and the propageted input tensorflow-tensorboard which causes environment collisions.
# another possibility would be to have tensorboard only in the buildInputs
@@ -94,7 +97,12 @@ in buildPythonPackage {
lib.optionalString stdenv.isLinux ''
rrPath="$out/${python.sitePackages}/tensorflow/:$out/${python.sitePackages}/tensorflow/contrib/tensor_forest/:${rpath}"
internalLibPath="$out/${python.sitePackages}/tensorflow/python/_pywrap_tensorflow_internal.so"
find $out \( -name '*.so' -or -name '*.so.*' \) -exec patchelf --set-rpath "$rrPath" {} \;
find $out -type f \( -name '*.so' -or -name '*.so.*' \) | while read lib; do
patchelf --set-rpath "$rrPath" "$lib"
${lib.optionalString cudaSupport ''
addOpenGLRunpath "$lib"
''}
done
'';


36 changes: 27 additions & 9 deletions pkgs/development/python-modules/tensorflow/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ stdenv, pkgs, buildBazelPackage, lib, fetchFromGitHub, fetchpatch, symlinkJoin
, addOpenGLRunpath
# Python deps
, buildPythonPackage, isPy3k, pythonOlder, pythonAtLeast, python
# Python libraries
@@ -112,7 +113,7 @@ let

nativeBuildInputs = [
swig which pythonEnv
];
] ++ lib.optional cudaSupport addOpenGLRunpath;

buildInputs = [
jemalloc
@@ -203,6 +204,7 @@ let
TF_NEED_CUDA = tfFeature cudaSupport;
TF_CUDA_PATHS = lib.optionalString cudaSupport "${cudatoolkit_joined},${cudnn},${nccl}";
GCC_HOST_COMPILER_PREFIX = lib.optionalString cudaSupport "${cudatoolkit_cc_joined}/bin";
GCC_HOST_COMPILER_PATH = lib.optionalString cudaSupport "${cudatoolkit_cc_joined}/bin/gcc";
TF_CUDA_COMPUTE_CAPABILITIES = lib.concatStringsSep "," cudaCapabilities;

postPatch = ''
@@ -295,6 +297,21 @@ let
bazel-bin/tensorflow/tools/pip_package/build_pip_package --src "$PWD/dist"
cp -Lr "$PWD/dist" "$python"
'';

postFixup = lib.optionalString cudaSupport ''
find $out -type f \( -name '*.so' -or -name '*.so.*' \) | while read lib; do
addOpenGLRunpath "$lib"
done
'';
};

meta = with stdenv.lib; {
description = "Computation using data flow graphs for scalable machine learning";
homepage = http://tensorflow.org;
license = licenses.asl20;
maintainers = with maintainers; [ jyp abbradar ];
platforms = platforms.linux;
broken = !(xlaSupport -> cudaSupport);
};
};

@@ -337,6 +354,14 @@ in buildPythonPackage {
tensorflow-tensorboard
];

nativeBuildInputs = lib.optional cudaSupport addOpenGLRunpath;

postFixup = lib.optionalString cudaSupport ''
find $out -type f \( -name '*.so' -or -name '*.so.*' \) | while read lib; do
addOpenGLRunpath "$lib"
done
'';

# Actual tests are slow and impure.
# TODO try to run them anyway
# TODO better test (files in tensorflow/tools/ci_build/builds/*test)
@@ -346,12 +371,5 @@ in buildPythonPackage {

passthru.libtensorflow = bazel-build.out;

meta = with stdenv.lib; {
description = "Computation using data flow graphs for scalable machine learning";
homepage = http://tensorflow.org;
license = licenses.asl20;
maintainers = with maintainers; [ jyp abbradar ];
platforms = platforms.linux;
broken = !(xlaSupport -> cudaSupport);
};
inherit (bazel-build) meta;
}
Loading