2016-01-17 23:04:40 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, autoreconfHook, makeWrapper
|
2014-11-06 10:29:02 +00:00
|
|
|
, perl, libxml2, IOStringy }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "hivex-${version}";
|
2017-02-22 06:01:09 +00:00
|
|
|
version = "1.3.14";
|
2014-11-06 10:29:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://libguestfs.org/download/hivex/${name}.tar.gz";
|
2017-02-22 06:01:09 +00:00
|
|
|
sha256 = "0aqv28prjcmc66znw0wgaxjijg5mjm44bgn1iil8a4dlbsgv4p7b";
|
2014-11-06 10:29:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./hivex-syms.patch ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2016-01-17 23:04:40 +00:00
|
|
|
pkgconfig autoreconfHook makeWrapper
|
2014-11-06 10:29:02 +00: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 20:29:29 +00:00
|
|
|
platforms = platforms.linux;
|
2014-11-06 10:29:02 +00:00
|
|
|
};
|
|
|
|
}
|