mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
libvirt-glib: 4.0.0 → 5.0.0
Fixes compatibility with latest GLib and libxml2. https://gitlab.com/libvirt/libvirt-glib/-/compare/v4.0.0...v5.0.0
This commit is contained in:
parent
cc231894b7
commit
b9cf7e566a
|
@ -1,7 +1,6 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, fetchpatch
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
|
@ -20,23 +19,15 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libvirt-glib";
|
||||
version = "4.0.0";
|
||||
version = "5.0.0";
|
||||
|
||||
outputs = [ "out" "dev" ] ++ lib.optional withDocs "devdoc";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://libvirt.org/sources/glib/${pname}-${version}.tar.xz";
|
||||
sha256 = "hCP3Bp2qR2MHMh0cEeLswoU0DNMsqfwFIHdihD7erL0=";
|
||||
sha256 = "m/7DRjgkFqNXXYcpm8ZBsqRkqlGf2bEofjGKpDovO4s=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix build with GLib 2.70
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.com/libvirt/libvirt-glib/-/commit/9a34c4ea55e0246c34896e48b8ecd637bc559ac7.patch";
|
||||
sha256 = "UU70uTi55EzPMuLYVKRzpVcd3WogeAtWAWEC2hWlR7k=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
|
@ -69,9 +60,6 @@ stdenv.mkDerivation rec {
|
|||
(lib.mesonEnable "introspection" withIntrospection)
|
||||
];
|
||||
|
||||
# https://gitlab.com/libvirt/libvirt-glib/-/issues/4
|
||||
env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=pointer-sign" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library for working with virtual machines";
|
||||
longDescription = ''
|
||||
|
|
Loading…
Reference in a new issue