mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
264bcd67cb
This is required for recent libdnf used by rpm-ostree.
33 lines
767 B
Nix
33 lines
767 B
Nix
{ stdenv, fetchFromGitHub, cmake, ninja, zlib, expat, rpm, db }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
rev = "0.6.34";
|
|
name = "libsolv-${rev}";
|
|
|
|
src = fetchFromGitHub {
|
|
inherit rev;
|
|
owner = "openSUSE";
|
|
repo = "libsolv";
|
|
sha256 = "1knr48dilg8kscbmpjvd7m2krvgcdq0f9vpbqcgmxxa969mzrcy7";
|
|
};
|
|
|
|
cmakeFlags = [
|
|
"-DENABLE_COMPLEX_DEPS=true"
|
|
"-DENABLE_RPMMD=true"
|
|
"-DENABLE_RPMDB=true"
|
|
"-DENABLE_PUBKEY=true"
|
|
"-DENABLE_RPMDB_BYRPMHEADER=true"
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake ninja ];
|
|
buildInputs = [ zlib expat rpm db ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A free package dependency solver";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ copumpkin ];
|
|
};
|
|
}
|
|
|