From a2569f5fd63bd1867ba6da1a2207560384dfa7a3 Mon Sep 17 00:00:00 2001 From: Josef Kemetmueller Date: Sat, 6 May 2017 10:44:23 +0200 Subject: [PATCH 1/2] c-blosc: init at 1.11.3 --- .../development/libraries/c-blosc/default.nix | 24 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/libraries/c-blosc/default.nix diff --git a/pkgs/development/libraries/c-blosc/default.nix b/pkgs/development/libraries/c-blosc/default.nix new file mode 100644 index 00000000000..5066b0a3250 --- /dev/null +++ b/pkgs/development/libraries/c-blosc/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchFromGitHub, cmake }: + +stdenv.mkDerivation rec { + name = "c-blosc"; + version = "1.11.3"; + + src = fetchFromGitHub { + owner = "Blosc"; + repo = "c-blosc"; + rev = "v${version}"; + sha256 = "18665lwszwbb48pxgisyxxjh92sr764hv6h7jw8zzsmzdkgzrmcw"; + }; + + buildInputs = [ cmake ]; + + enableParallelBuilding = true; + + meta = with stdenv.lib; { + description = "A blocking, shuffling and loss-less compression library"; + homepage = http://www.blosc.org; + license = licenses.bsd3; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e4ed1329f9f..5febd6cbbb4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7239,6 +7239,8 @@ with pkgs; fetchurl = fetchurlBoot; }; + c-blosc = callPackage ../development/libraries/c-blosc { }; + capnproto = callPackage ../development/libraries/capnproto { }; ccnx = callPackage ../development/libraries/ccnx { }; From facf9a6d22966c9ab664e669b7a68f814dc2337f Mon Sep 17 00:00:00 2001 From: Josef Kemetmueller Date: Sat, 6 May 2017 10:45:34 +0200 Subject: [PATCH 2/2] pytables: Fix build on darwin by using external c-blosc Using the pytables internal c-blosc lead to a compilation error on darwin, as the installer uses cpuinfo.get_cpu_info(), which (unexpectedly for pytables) returns None in the current darwin-python. --- pkgs/development/python-modules/tables/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/tables/default.nix b/pkgs/development/python-modules/tables/default.nix index e5de7c4e2a4..7faad8ec4f4 100644 --- a/pkgs/development/python-modules/tables/default.nix +++ b/pkgs/development/python-modules/tables/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, python, buildPythonPackage -, cython, bzip2, lzo, numpy, numexpr, hdf5, six }: +, cython, bzip2, lzo, numpy, numexpr, hdf5, six, c-blosc }: buildPythonPackage rec { version = "3.3.0"; @@ -10,7 +10,7 @@ buildPythonPackage rec { sha256 = "0b4211s0zzdmh74k49ss0m9lc2ql2iazq2aa95ams6h45vqcr0w3"; }; - buildInputs = [ hdf5 cython bzip2 lzo ]; + buildInputs = [ hdf5 cython bzip2 lzo c-blosc ]; propagatedBuildInputs = [ numpy numexpr six ]; # The setup script complains about missing run-paths, but they are @@ -19,6 +19,7 @@ buildPythonPackage rec { [ "--hdf5=${hdf5}" "--lzo=${lzo}" "--bzip2=${bzip2.dev}" + "--blosc=${c-blosc}" ]; # Run the test suite.