2016-01-17 23:04:40 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, autoreconfHook, makeWrapper
|
2018-12-15 03:50:31 +00:00
|
|
|
, perlPackages, libxml2 }:
|
2014-11-06 10:29:02 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "hivex-${version}";
|
2019-01-28 16:42:33 +00:00
|
|
|
version = "1.3.17";
|
2014-11-06 10:29:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://libguestfs.org/download/hivex/${name}.tar.gz";
|
2019-01-28 16:42:33 +00:00
|
|
|
sha256 = "1nsjijgcpcl6vm7whbbpxqrjycajf7vy0sp5hfg4vmvjmf3lpjqk";
|
2014-11-06 10:29:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./hivex-syms.patch ];
|
|
|
|
|
2017-09-14 20:24:37 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2014-11-06 10:29:02 +00:00
|
|
|
buildInputs = [
|
2018-12-15 03:50:31 +00:00
|
|
|
autoreconfHook makeWrapper libxml2
|
|
|
|
] ++ (with perlPackages; [ perl IOStringy ]);
|
2014-11-06 10:29:02 +00:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|