summary refs log tree commit diff
path: root/pkgs/development/libraries/boost
diff options
context:
space:
mode:
authorBouke van der Bijl <i@bou.ke>2023-01-19 13:42:21 +0100
committerBouke van der Bijl <i@bou.ke>2023-02-02 10:55:16 +0100
commitab04f4777b5e0fca66e2ebd51cc23eb7848b8269 (patch)
tree47d0f935d2d4a588857c91f29bedfeb884945fbf /pkgs/development/libraries/boost
parentbb9930984ef504e930d2ad3954630df8f64b68e1 (diff)
downloadnixpkgs-ab04f4777b5e0fca66e2ebd51cc23eb7848b8269.tar
nixpkgs-ab04f4777b5e0fca66e2ebd51cc23eb7848b8269.tar.gz
nixpkgs-ab04f4777b5e0fca66e2ebd51cc23eb7848b8269.tar.bz2
nixpkgs-ab04f4777b5e0fca66e2ebd51cc23eb7848b8269.tar.lz
nixpkgs-ab04f4777b5e0fca66e2ebd51cc23eb7848b8269.tar.xz
nixpkgs-ab04f4777b5e0fca66e2ebd51cc23eb7848b8269.tar.zst
nixpkgs-ab04f4777b5e0fca66e2ebd51cc23eb7848b8269.zip
boost: add zstd and lzma support
The boost iostreams library supports zstd and lzma compression if it can
find the packages: https://www.boost.org/doc/libs/1_79_0/libs/iostreams/doc/installation.html
Diffstat (limited to 'pkgs/development/libraries/boost')
-rw-r--r--pkgs/development/libraries/boost/generic.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/boost/generic.nix b/pkgs/development/libraries/boost/generic.nix
index 4c6ba700457..4268af7ee0b 100644
--- a/pkgs/development/libraries/boost/generic.nix
+++ b/pkgs/development/libraries/boost/generic.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, icu, expat, zlib, bzip2, python ? null, fixDarwinDylibNames, libiconv, libxcrypt
+{ lib, stdenv, icu, expat, zlib, bzip2, zstd, xz, python ? null, fixDarwinDylibNames, libiconv, libxcrypt
 , boost-build
 , fetchpatch
 , which
@@ -226,6 +226,8 @@ stdenv.mkDerivation {
   nativeBuildInputs = [ which boost-build ]
     ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
   buildInputs = [ expat zlib bzip2 libiconv ]
+    ++ lib.optional (lib.versionAtLeast version "1.69") zstd
+    ++ lib.optional (lib.versionAtLeast version "1.65") xz
     ++ lib.optional enableIcu icu
     ++ lib.optionals enablePython [ libxcrypt python ]
     ++ lib.optional enableNumpy python.pkgs.numpy;