nixpkgs/pkgs/development/libraries/libguestfs/default.nix
R. RyanTM 0e37c770bf libguestfs: 1.38.0 -> 1.38.2 (#42697)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/libguestfs/versions.

These checks were done:

- built on NixOS
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/guestfish passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/guestmount passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/guestunmount passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/libguestfs-test-tool passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-alignment-scan passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-builder passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-builder-repository passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-cat passed the binary check.
- Warning: no invocation of /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-copy-in-wrapped had a zero exit code or showed the expected version
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-copy-in passed the binary check.
- Warning: no invocation of /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-copy-out-wrapped had a zero exit code or showed the expected version
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-copy-out passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-customize passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-df passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-dib passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-diff passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-edit passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-filesystems passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-format passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-get-kernel passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-index-validate passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-inspector passed the binary check.
- Warning: no invocation of /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-list-filesystems-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-list-filesystems had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-list-partitions-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-list-partitions had a zero exit code or showed the expected version
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-log passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-ls passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-make-fs passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-rescue passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-resize passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-sparsify passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-sysprep passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-tail passed the binary check.
- Warning: no invocation of /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-tar-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-tar had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-tar-in-wrapped had a zero exit code or showed the expected version
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-tar-in passed the binary check.
- Warning: no invocation of /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-tar-out-wrapped had a zero exit code or showed the expected version
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-tar-out passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-v2v passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-v2v-copy-to-local passed the binary check.
- Warning: no invocation of /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-win-reg-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/virt-win-reg had a zero exit code or showed the expected version
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.guestfish-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.guestmount-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.guestunmount-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.libguestfs-test-tool-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-alignment-scan-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-builder-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-builder-repository-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-cat-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-customize-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-df-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-dib-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-diff-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-edit-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-filesystems-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-format-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-get-kernel-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-index-validate-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-inspector-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-log-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-ls-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-make-fs-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-rescue-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-resize-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-sparsify-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-sysprep-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-tail-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-v2v-wrapped passed the binary check.
- /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2/bin/.virt-v2v-copy-to-local-wrapped passed the binary check.
- 60 of 72 passed binary check by having a zero exit code.
- 24 of 72 passed binary check by having the new version present in output.
- found 1.38.2 with grep in /nix/store/pmf2ffgaiicm4a6svl96iqxwsbym1hxj-libguestfs-1.38.2
- directory tree listing: https://gist.github.com/6015d8610a76dff5d1c8f06d6434423d
- du listing: https://gist.github.com/432a66e455c5c90bc295e87f22d1104a
2018-06-29 23:21:18 +02:00

90 lines
3.3 KiB
Nix

{ stdenv, fetchurl, pkgconfig, autoreconfHook, makeWrapper
, ncurses, cpio, gperf, perl, cdrkit, flex, bison, qemu, pcre, augeas, libxml2
, acl, libcap, libcap_ng, libconfig, systemd, fuse, yajl, libvirt, hivex
, gmp, readline, file, libintlperl, GetoptLong, SysVirt, numactl, xen, libapparmor
, getopt, perlPackages, ocamlPackages
, appliance ? null
, javaSupport ? false, jdk ? null }:
assert appliance == null || stdenv.lib.isDerivation appliance;
assert javaSupport -> jdk != null;
stdenv.mkDerivation rec {
name = "libguestfs-${version}";
version = "1.38.2";
src = fetchurl {
url = "http://libguestfs.org/download/1.38-stable/libguestfs-${version}.tar.gz";
sha256 = "16v2lpi9c0vnic2x0vpszmckh0x39bmf6x7y00vvzbwhszshxx3w";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
makeWrapper autoreconfHook ncurses cpio gperf perl
cdrkit flex bison qemu pcre augeas libxml2 acl libcap libcap_ng libconfig
systemd fuse yajl libvirt gmp readline file hivex libintlperl GetoptLong
SysVirt numactl xen libapparmor getopt perlPackages.ModuleBuild
] ++ (with ocamlPackages; [ ocaml findlib ocamlbuild ocaml_libvirt ocaml_gettext ounit ])
++ stdenv.lib.optional javaSupport jdk;
prePatch = ''
# build-time scripts
substituteInPlace run.in --replace '#!/bin/bash' '#!/bin/sh'
substituteInPlace ocaml-link.sh --replace '#!/bin/bash' '#!/bin/sh'
# $(OCAMLLIB) is read-only "${ocamlPackages.ocaml}/lib/ocaml"
substituteInPlace ocaml/Makefile.am --replace '$(DESTDIR)$(OCAMLLIB)' '$(out)/lib/ocaml'
substituteInPlace ocaml/Makefile.in --replace '$(DESTDIR)$(OCAMLLIB)' '$(out)/lib/ocaml'
substituteInPlace v2v/test-harness/Makefile.am --replace '$(DESTDIR)$(OCAMLLIB)' '$(out)/lib/ocaml'
substituteInPlace v2v/test-harness/Makefile.in --replace '$(DESTDIR)$(OCAMLLIB)' '$(out)/lib/ocaml'
# some scripts hardcore /usr/bin/env which is not available in the build env
patchShebangs .
'';
configureFlags = [ "--disable-appliance" "--disable-daemon" "--with-distro=NixOS" ]
++ stdenv.lib.optionals (!javaSupport) [ "--disable-java" "--without-java" ];
patches = [ ./libguestfs-syms.patch ];
NIX_CFLAGS_COMPILE="-I${libxml2.dev}/include/libxml2/";
installFlags = "REALLY_INSTALL=yes";
enableParallelBuilding = true;
postInstall = ''
for bin in $out/bin/*; do
wrapProgram "$bin" \
--prefix PATH : "$out/bin:${hivex}/bin:${qemu}/bin" \
--prefix PERL5LIB : "$out/lib/perl5/site_perl"
done
'';
postFixup = stdenv.lib.optionalString (appliance != null) ''
mkdir -p $out/{lib,lib64}
ln -s ${appliance} $out/lib64/guestfs
ln -s ${appliance} $out/lib/guestfs
'';
doInstallCheck = appliance != null;
installCheckPhase = ''
export HOME=$(mktemp -d) # avoid access to /homeless-shelter/.guestfish
${qemu}/bin/qemu-img create -f qcow2 disk1.img 10G
$out/bin/guestfish <<'EOF'
add-drive disk1.img
run
list-filesystems
part-disk /dev/sda mbr
mkfs ext2 /dev/sda1
list-filesystems
EOF
'';
meta = with stdenv.lib; {
description = "Tools for accessing and modifying virtual machine disk images";
license = licenses.gpl2;
homepage = http://libguestfs.org/;
maintainers = with maintainers; [offline];
platforms = platforms.linux;
hydraPlatforms = [];
};
}