python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libsolv / default.nix
blob7267b7d99b2ff8dba13db1831aed40be5c4894af
1 { lib, stdenv, fetchFromGitHub, cmake, ninja, pkg-config
2 , zlib, xz, bzip2, zchunk, zstd
3 , expat, rpm, db }:
5 stdenv.mkDerivation rec {
6   version  = "0.7.22";
7   pname = "libsolv";
9   src = fetchFromGitHub {
10     owner  = "openSUSE";
11     repo   = "libsolv";
12     rev    = version;
13     sha256 = "sha256-rqWQJz3gZuhcNblyFWiYCC17miNY8F5xguAJwDk3xFE=";
14   };
16   cmakeFlags = [
17     "-DENABLE_COMPLEX_DEPS=true"
18     "-DENABLE_RPMMD=true"
19     "-DENABLE_RPMDB=true"
20     "-DENABLE_PUBKEY=true"
21     "-DENABLE_RPMDB_BYRPMHEADER=true"
22     "-DENABLE_LZMA_COMPRESSION=true"
23     "-DENABLE_BZIP2_COMPRESSION=true"
24     "-DENABLE_ZSTD_COMPRESSION=true"
25     "-DENABLE_ZCHUNK_COMPRESSION=true"
26     "-DWITH_SYSTEM_ZCHUNK=true"
27   ];
29   nativeBuildInputs = [ cmake ninja pkg-config ];
30   buildInputs = [ zlib xz bzip2 zchunk zstd expat rpm db ];
32   meta = with lib; {
33     description = "A free package dependency solver";
34     homepage    = "https://github.com/openSUSE/libsolv";
35     license     = licenses.bsd3;
36     platforms   = platforms.linux ++ platforms.darwin;
37     maintainers = with maintainers; [ copumpkin ];
38   };