lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 16.09-beta 52 lines 1.8 kB view raw
1{ stdenv, fetchurl, pkgconfig, autoreconfHook, 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, numactl, xen }: 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 autoreconfHook 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 numactl xen 25 ]; 26 27 configureFlags = "--disable-appliance --disable-daemon"; 28 patches = [ ./libguestfs-syms.patch ]; 29 NIX_CFLAGS_COMPILE="-I${libxml2.dev}/include/libxml2/"; 30 31 postInstall = '' 32 for bin in $out/bin/*; do 33 wrapProgram "$bin" \ 34 --prefix "PATH" : "$out/bin:${hivex}/bin" \ 35 --prefix "PERL5LIB" : "$PERL5LIB:$out/lib/perl5/site_perl" 36 done 37 ''; 38 39 postFixup = '' 40 mkdir -p "$out/lib/guestfs" 41 tar -Jxvf "$appliance" --strip 1 -C "$out/lib/guestfs" 42 ''; 43 44 meta = with stdenv.lib; { 45 description = "Tools for accessing and modifying virtual machine disk images"; 46 license = licenses.gpl2; 47 homepage = http://libguestfs.org/; 48 maintainers = with maintainers; [offline]; 49 platforms = platforms.linux; 50 hydraPlatforms = []; 51 }; 52}