Skip to content

Commit

Permalink
python3Packages.guestfs: build and use from pkgs.libguestfs
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Feb 27, 2025
1 parent 2a36a34 commit 8a9f97e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 38 deletions.
5 changes: 5 additions & 0 deletions pkgs/by-name/li/libguestfs/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
jansson,
getopt,
perlPackages,
python3,
ocamlPackages,
libtirpc,
appliance ? null,
Expand Down Expand Up @@ -67,6 +68,8 @@ stdenv.mkDerivation (finalAttrs: {
gperf
makeWrapper
pkg-config
python3
python3.pkgs.pycodestyle
qemu
zstd
]
Expand Down Expand Up @@ -103,6 +106,7 @@ stdenv.mkDerivation (finalAttrs: {
numactl
libapparmor
perlPackages.ModuleBuild
python3
libtirpc
zstd
ocamlPackages.ocamlbuild
Expand All @@ -120,6 +124,7 @@ stdenv.mkDerivation (finalAttrs: {
"--enable-install-daemon"
"--disable-appliance"
"--with-distro=NixOS"
"--with-python-installdir=${placeholder "out"}/${python3.sitePackages}"
"--with-readline"
"CPPFLAGS=-I${lib.getDev libxml2}/include/libxml2"
"INSTALL_OCAMLLIB=${placeholder "out"}/lib/ocaml"
Expand Down
35 changes: 0 additions & 35 deletions pkgs/development/python-modules/guestfs/default.nix

This file was deleted.

4 changes: 1 addition & 3 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5774,9 +5774,7 @@ self: super: with self; {

guessit = callPackage ../development/python-modules/guessit { };

guestfs = callPackage ../development/python-modules/guestfs {
qemu = pkgs.qemu;
};
guestfs = toPythonModule pkgs.libguestfs;

gudhi = callPackage ../development/python-modules/gudhi {
inherit (pkgs) cgal;
Expand Down

0 comments on commit 8a9f97e

Please sign in to comment.