Skip to content

Commit

Permalink
libguestfs-with-appliance: warn in case of version mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
lukts30 authored and bjornfor committed Oct 19, 2024
1 parent 36b4d9d commit 7886f6e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions pkgs/by-name/li/libguestfs-with-appliance/package.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{ libguestfs, libguestfs-appliance }:
{
lib,
libguestfs,
libguestfs-appliance,
}:

libguestfs.override { appliance = libguestfs-appliance; }
# https://github.com/NixOS/nixpkgs/issues/280881
lib.warnIf (builtins.compareVersions libguestfs.version libguestfs-appliance.version > 0)
"libguestfs has a higher version than libguestfs-appliance (${libguestfs.version} > ${libguestfs-appliance.version}), runtime errors may occur!"

libguestfs.override
{ appliance = libguestfs-appliance; }

0 comments on commit 7886f6e

Please sign in to comment.