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