mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
libhif: init at 87e4cb24
The latest released version is too old for my needs, so I'm picking a git commit that works. I'll update it when they release a new one.
This commit is contained in:
parent
fcf37351bd
commit
d70752cce9
29
pkgs/tools/package-management/libhif/default.nix
Normal file
29
pkgs/tools/package-management/libhif/default.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ stdenv, fetchFromGitHub, cmake, pkgconfig, autoconf, automake, libtool, expat, python, sphinx, gobjectIntrospection, librepo, check, rpm, libsolv, pcre, curl, gtk_doc, zlib, xz, elfutils }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
rev = "87e4cb247f5982fd48636691a955cc566d3110a3";
|
||||
name = "libhif-${stdenv.lib.strings.substring 0 7 rev}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit rev;
|
||||
owner = "rpm-software-management";
|
||||
repo = "libhif";
|
||||
sha256 = "1g8hrqjawzwcx1gjcnv9sxg5i8l13dab3rr3i641k5vi76vv8miq";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
for file in python/hawkey/CMakeLists.txt python/hawkey/tests/module/CMakeLists.txt; do
|
||||
substituteInPlace $file --replace ' ''${PYTHON_INSTALL_DIR}' " $out/${python.sitePackages}"
|
||||
done
|
||||
|
||||
# Until https://github.com/rpm-software-management/libhif/issues/43 is implemented, let's not force users to have this path
|
||||
substituteInPlace libhif/hif-keyring.c \
|
||||
--replace '"/etc/pki/rpm-gpg"' 'getenv("LIBHIF_RPM_GPG_PATH_OVERRIDE") ? getenv("LIBHIF_RPM_GPG_PATH_OVERRIDE") : "/etc/pki/rpm-gpg"'
|
||||
'';
|
||||
|
||||
buildInputs = [ cmake pkgconfig pcre expat python sphinx gobjectIntrospection gtk_doc librepo check rpm curl ];
|
||||
|
||||
# ibhif/hif-packagedelta.h includes solv/pool.h
|
||||
propagatedBuildInputs = [ libsolv ];
|
||||
}
|
||||
|
@ -7650,6 +7650,8 @@ in
|
||||
|
||||
libharu = callPackage ../development/libraries/libharu { };
|
||||
|
||||
libhif = callPackage ../tools/package-management/libhif { sphinx = python27Packages.sphinx; };
|
||||
|
||||
libHX = callPackage ../development/libraries/libHX { };
|
||||
|
||||
libibmad = callPackage ../development/libraries/libibmad { };
|
||||
|
Loading…
Reference in New Issue
Block a user