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
This commit is contained in:
parent
bb9930984e
commit
ab04f4777b
1 changed files with 3 additions and 1 deletions
|
@ -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
|
, boost-build
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, which
|
, which
|
||||||
|
@ -226,6 +226,8 @@ stdenv.mkDerivation {
|
||||||
nativeBuildInputs = [ which boost-build ]
|
nativeBuildInputs = [ which boost-build ]
|
||||||
++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
|
++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
|
||||||
buildInputs = [ expat zlib bzip2 libiconv ]
|
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.optional enableIcu icu
|
||||||
++ lib.optionals enablePython [ libxcrypt python ]
|
++ lib.optionals enablePython [ libxcrypt python ]
|
||||||
++ lib.optional enableNumpy python.pkgs.numpy;
|
++ lib.optional enableNumpy python.pkgs.numpy;
|
||||||
|
|
Loading…
Reference in a new issue