2016-01-18 00:04:40 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, autoreconfHook, makeWrapper
|
2014-11-06 11:29:02 +01:00
|
|
|
, perl, libxml2, IOStringy }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "hivex-${version}";
|
2018-03-09 03:33:13 +01:00
|
|
|
version = "1.3.15";
|
2014-11-06 11:29:02 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://libguestfs.org/download/hivex/${name}.tar.gz";
|
2018-03-09 03:33:13 +01:00
|
|
|
sha256 = "02vzipzrp1gr87rn7mkhyzr4zdjkp2dzcvvb223x7i0ch8ci7r4c";
|
2014-11-06 11:29:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./hivex-syms.patch ];
|
|
|
|
|
2017-09-14 21:24:37 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2014-11-06 11:29:02 +01:00
|
|
|
buildInputs = [
|
2017-09-14 21:24:37 +02:00
|
|
|
autoreconfHook makeWrapper
|
2014-11-06 11:29:02 +01:00
|
|
|
perl libxml2 IOStringy
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for bin in $out/bin/*; do
|
|
|
|
wrapProgram "$bin" --prefix "PATH" : "$out/bin"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Windows registry hive extraction library";
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
homepage = https://github.com/libguestfs/hivex;
|
|
|
|
maintainers = with maintainers; [offline];
|
2015-11-17 21:29:29 +01:00
|
|
|
platforms = platforms.linux;
|
2014-11-06 11:29:02 +01:00
|
|
|
};
|
|
|
|
}
|