at 17.09-beta 33 lines 834 B view raw
1{ stdenv, fetchurl, pkgconfig, autoreconfHook, makeWrapper 2, perl, libxml2, IOStringy }: 3 4stdenv.mkDerivation rec { 5 name = "hivex-${version}"; 6 version = "1.3.14"; 7 8 src = fetchurl { 9 url = "http://libguestfs.org/download/hivex/${name}.tar.gz"; 10 sha256 = "0aqv28prjcmc66znw0wgaxjijg5mjm44bgn1iil8a4dlbsgv4p7b"; 11 }; 12 13 patches = [ ./hivex-syms.patch ]; 14 15 buildInputs = [ 16 pkgconfig autoreconfHook makeWrapper 17 perl libxml2 IOStringy 18 ]; 19 20 postInstall = '' 21 for bin in $out/bin/*; do 22 wrapProgram "$bin" --prefix "PATH" : "$out/bin" 23 done 24 ''; 25 26 meta = with stdenv.lib; { 27 description = "Windows registry hive extraction library"; 28 license = licenses.lgpl2; 29 homepage = https://github.com/libguestfs/hivex; 30 maintainers = with maintainers; [offline]; 31 platforms = platforms.linux; 32 }; 33}