Add hivex, windows registry hive extraction library
This commit is contained in:
parent
cc3ba83055
commit
7dc7ccbe5b
37
pkgs/development/libraries/hivex/default.nix
Normal file
37
pkgs/development/libraries/hivex/default.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ stdenv, fetchurl, pkgconfig, automake, autoconf, libtool, makeWrapper
|
||||
, perl, libxml2, IOStringy }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "hivex-${version}";
|
||||
version = "1.3.11";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://libguestfs.org/download/hivex/${name}.tar.gz";
|
||||
sha256 = "0y3nqykwy58divxkv7gmsb067dasyfz3apbp437hl57rgrndyfn6";
|
||||
};
|
||||
|
||||
patches = [ ./hivex-syms.patch ];
|
||||
|
||||
buildInputs = [
|
||||
pkgconfig automake autoconf libtool makeWrapper
|
||||
perl libxml2 IOStringy
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
AUTOPOINT=true autoreconf --verbose --install
|
||||
'';
|
||||
|
||||
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];
|
||||
platforms = with platforms; linux;
|
||||
};
|
||||
}
|
13
pkgs/development/libraries/hivex/hivex-syms.patch
Normal file
13
pkgs/development/libraries/hivex/hivex-syms.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff -rupN hivex-1.3.11/lib/Makefile.am hivex-1.3.11-new/lib/Makefile.am
|
||||
--- hivex-1.3.11/lib/Makefile.am 2013-09-10 13:04:12.000000000 +0200
|
||||
+++ hivex-1.3.11-new/lib/Makefile.am 2014-11-06 01:31:05.956106861 +0100
|
||||
@@ -40,8 +40,7 @@ libhivex_la_SOURCES = \
|
||||
|
||||
libhivex_la_LIBADD = ../gnulib/lib/libgnu.la $(LTLIBOBJS)
|
||||
libhivex_la_LDFLAGS = \
|
||||
- -version-info 0:0:0 \
|
||||
- $(VERSION_SCRIPT_FLAGS)$(srcdir)/hivex.syms \
|
||||
+ -version-info 0:0:0
|
||||
$(LTLIBICONV) \
|
||||
$(LTLIBINTL) \
|
||||
$(LTLIBTHREAD)
|
@ -5476,6 +5476,10 @@ let
|
||||
libusb = libusb1;
|
||||
};
|
||||
|
||||
hivex = callPackage ../development/libraries/hivex {
|
||||
inherit (perlPackages) IOStringy;
|
||||
};
|
||||
|
||||
hspell = callPackage ../development/libraries/hspell { };
|
||||
|
||||
hspellDicts = callPackage ../development/libraries/hspell/dicts.nix { };
|
||||
|
Loading…
x
Reference in New Issue
Block a user