at 18.09-beta 34 lines 861 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.15"; 7 8 src = fetchurl { 9 url = "http://libguestfs.org/download/hivex/${name}.tar.gz"; 10 sha256 = "02vzipzrp1gr87rn7mkhyzr4zdjkp2dzcvvb223x7i0ch8ci7r4c"; 11 }; 12 13 patches = [ ./hivex-syms.patch ]; 14 15 nativeBuildInputs = [ pkgconfig ]; 16 buildInputs = [ 17 autoreconfHook makeWrapper 18 perl libxml2 IOStringy 19 ]; 20 21 postInstall = '' 22 for bin in $out/bin/*; do 23 wrapProgram "$bin" --prefix "PATH" : "$out/bin" 24 done 25 ''; 26 27 meta = with stdenv.lib; { 28 description = "Windows registry hive extraction library"; 29 license = licenses.lgpl2; 30 homepage = https://github.com/libguestfs/hivex; 31 maintainers = with maintainers; [offline]; 32 platforms = platforms.linux; 33 }; 34}