2022-07-14 12:49:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, ninja, pkg-config
|
2022-08-12 12:06:08 +00:00
|
|
|
, zlib, xz, bzip2, zchunk, zstd
|
2022-07-14 12:49:19 +00:00
|
|
|
, expat, rpm, db }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "0.7.22";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "libsolv";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openSUSE";
|
|
|
|
repo = "libsolv";
|
|
|
|
rev = version;
|
2022-05-18 14:49:53 +00:00
|
|
|
sha256 = "sha256-rqWQJz3gZuhcNblyFWiYCC17miNY8F5xguAJwDk3xFE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DENABLE_COMPLEX_DEPS=true"
|
|
|
|
"-DENABLE_RPMMD=true"
|
|
|
|
"-DENABLE_RPMDB=true"
|
|
|
|
"-DENABLE_PUBKEY=true"
|
|
|
|
"-DENABLE_RPMDB_BYRPMHEADER=true"
|
2022-07-14 12:49:19 +00:00
|
|
|
"-DENABLE_LZMA_COMPRESSION=true"
|
|
|
|
"-DENABLE_BZIP2_COMPRESSION=true"
|
|
|
|
"-DENABLE_ZSTD_COMPRESSION=true"
|
|
|
|
"-DENABLE_ZCHUNK_COMPRESSION=true"
|
|
|
|
"-DWITH_SYSTEM_ZCHUNK=true"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
nativeBuildInputs = [ cmake ninja pkg-config ];
|
2022-08-12 12:06:08 +00:00
|
|
|
buildInputs = [ zlib xz bzip2 zchunk zstd expat rpm db ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A free package dependency solver";
|
|
|
|
homepage = "https://github.com/openSUSE/libsolv";
|
|
|
|
license = licenses.bsd3;
|
2020-12-25 13:55:36 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ copumpkin ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|