tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
Add hivex, windows registry hive extraction library
Jaka Hudoklin
11 years ago
7dc7ccbe
cc3ba830
+54
3 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
hivex
default.nix
hivex-syms.patch
top-level
all-packages.nix
+37
pkgs/development/libraries/hivex/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ stdenv, fetchurl, pkgconfig, automake, autoconf, libtool, makeWrapper
2
+
, perl, libxml2, IOStringy }:
3
+
4
+
stdenv.mkDerivation rec {
5
+
name = "hivex-${version}";
6
+
version = "1.3.11";
7
+
8
+
src = fetchurl {
9
+
url = "http://libguestfs.org/download/hivex/${name}.tar.gz";
10
+
sha256 = "0y3nqykwy58divxkv7gmsb067dasyfz3apbp437hl57rgrndyfn6";
11
+
};
12
+
13
+
patches = [ ./hivex-syms.patch ];
14
+
15
+
buildInputs = [
16
+
pkgconfig automake autoconf libtool makeWrapper
17
+
perl libxml2 IOStringy
18
+
];
19
+
20
+
preConfigure = ''
21
+
AUTOPOINT=true autoreconf --verbose --install
22
+
'';
23
+
24
+
postInstall = ''
25
+
for bin in $out/bin/*; do
26
+
wrapProgram "$bin" --prefix "PATH" : "$out/bin"
27
+
done
28
+
'';
29
+
30
+
meta = with stdenv.lib; {
31
+
description = "Windows registry hive extraction library";
32
+
license = licenses.lgpl2;
33
+
homepage = https://github.com/libguestfs/hivex;
34
+
maintainers = with maintainers; [offline];
35
+
platforms = with platforms; linux;
36
+
};
37
+
}
+13
pkgs/development/libraries/hivex/hivex-syms.patch
···
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
diff -rupN hivex-1.3.11/lib/Makefile.am hivex-1.3.11-new/lib/Makefile.am
2
+
--- hivex-1.3.11/lib/Makefile.am 2013-09-10 13:04:12.000000000 +0200
3
+
+++ hivex-1.3.11-new/lib/Makefile.am 2014-11-06 01:31:05.956106861 +0100
4
+
@@ -40,8 +40,7 @@ libhivex_la_SOURCES = \
5
+
6
+
libhivex_la_LIBADD = ../gnulib/lib/libgnu.la $(LTLIBOBJS)
7
+
libhivex_la_LDFLAGS = \
8
+
- -version-info 0:0:0 \
9
+
- $(VERSION_SCRIPT_FLAGS)$(srcdir)/hivex.syms \
10
+
+ -version-info 0:0:0
11
+
$(LTLIBICONV) \
12
+
$(LTLIBINTL) \
13
+
$(LTLIBTHREAD)
+4
pkgs/top-level/all-packages.nix
···
5476
libusb = libusb1;
5477
};
5478
0
0
0
0
5479
hspell = callPackage ../development/libraries/hspell { };
5480
5481
hspellDicts = callPackage ../development/libraries/hspell/dicts.nix { };
···
5476
libusb = libusb1;
5477
};
5478
5479
+
hivex = callPackage ../development/libraries/hivex {
5480
+
inherit (perlPackages) IOStringy;
5481
+
};
5482
+
5483
hspell = callPackage ../development/libraries/hspell { };
5484
5485
hspellDicts = callPackage ../development/libraries/hspell/dicts.nix { };