libsolv: enable more compression methods

Without them microdnf segfaults on any real-world usage attempts,
since real-world repodata is compressed and error handling is lacking.
This commit is contained in:
Alexander Sosedkin 2022-07-11 00:50:13 +02:00 committed by Franz Pletz
parent 9c52a623fc
commit 509a3cb0ad

View file

@ -1,4 +1,6 @@
{ lib, stdenv, fetchFromGitHub, cmake, ninja, zlib, expat, rpm, db }:
{ lib, stdenv, fetchFromGitHub, cmake, ninja, pkg-config
, zlib, lzma, bzip2, zchunk, zstd
, expat, rpm, db }:
stdenv.mkDerivation rec {
version = "0.7.22";
@ -17,10 +19,15 @@ stdenv.mkDerivation rec {
"-DENABLE_RPMDB=true"
"-DENABLE_PUBKEY=true"
"-DENABLE_RPMDB_BYRPMHEADER=true"
"-DENABLE_LZMA_COMPRESSION=true"
"-DENABLE_BZIP2_COMPRESSION=true"
"-DENABLE_ZSTD_COMPRESSION=true"
"-DENABLE_ZCHUNK_COMPRESSION=true"
"-DWITH_SYSTEM_ZCHUNK=true"
];
nativeBuildInputs = [ cmake ninja ];
buildInputs = [ zlib expat rpm db ];
nativeBuildInputs = [ cmake ninja pkg-config ];
buildInputs = [ zlib lzma bzip2 zchunk zstd expat rpm db ];
meta = with lib; {
description = "A free package dependency solver";