fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ stdenv, fetchurl, pkgconfig, autoconf, automake, libtool, makeWrapper
2, ncurses, cpio, gperf, perl, cdrkit, flex, bison, qemu, pcre, augeas, libxml2
3, acl, libcap, libcap_ng, libconfig, systemd, fuse, yajl, libvirt, hivex
4, gmp, readline, file, libintlperl, GetoptLong, SysVirt }:
5
6stdenv.mkDerivation rec {
7 name = "libguestfs-${version}";
8 version = "1.29.5";
9
10 appliance = fetchurl {
11 url = "http://libguestfs.org/download/binaries/appliance/appliance-1.26.0.tar.xz";
12 sha256 = "1kzvgmy845kclvr93y6rdpss2q0p8yfqg14r0i1pi5r4zc68yvj4";
13 };
14
15 src = fetchurl {
16 url = "http://libguestfs.org/download/1.29-development/libguestfs-${version}.tar.gz";
17 sha256 = "1il0p3irwcyfdm83935hj4bvxsx0kdfn8dvqmg2lbzap17jvzj8h";
18 };
19
20 buildInputs = [
21 makeWrapper pkgconfig autoconf automake libtool ncurses cpio gperf perl
22 cdrkit flex bison qemu pcre augeas libxml2 acl libcap libcap_ng libconfig
23 systemd fuse yajl libvirt gmp readline file hivex libintlperl GetoptLong
24 SysVirt
25 ];
26
27 configureFlags = "--disable-appliance --disable-daemon";
28 patches = [ ./libguestfs-syms.patch ];
29 NIX_CFLAGS_COMPILE="-I${libxml2}/include/libxml2/";
30
31 preConfigure = ''
32 AUTOPOINT=true LIBTOOLIZE=true autoreconf --verbose --install
33 '';
34
35 postInstall = ''
36 for bin in $out/bin/*; do
37 wrapProgram "$bin" \
38 --prefix "PATH" : "$out/bin:${hivex}/bin" \
39 --prefix "PERL5LIB" : "$PERL5LIB:$out/lib/perl5/site_perl"
40 done
41 '';
42
43 postFixup = ''
44 mkdir -p "$out/lib/guestfs"
45 tar -Jxvf "$appliance" --strip 1 -C "$out/lib/guestfs"
46 '';
47
48 meta = with stdenv.lib; {
49 description = "Tools for accessing and modifying virtual machine disk images";
50 license = licenses.gpl2;
51 homepage = http://libguestfs.org/;
52 maintainers = with maintainers; [offline];
53 platforms = with platforms; linux;
54 hydraPlatforms = [];
55 };
56}