mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
hivex: fix hivexget runtime dependencies (#560196)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
pkg-config,
|
||||
autoreconfHook,
|
||||
makeWrapper,
|
||||
bash,
|
||||
perlPackages,
|
||||
ocamlPackages,
|
||||
libxml2,
|
||||
@@ -39,6 +40,7 @@ stdenv.mkDerivation rec {
|
||||
findlib
|
||||
]);
|
||||
buildInputs = [
|
||||
bash
|
||||
libxml2
|
||||
]
|
||||
++ (with perlPackages; [
|
||||
@@ -50,6 +52,9 @@ stdenv.mkDerivation rec {
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/hivexget \
|
||||
--prefix "PATH" : "$out/bin"
|
||||
|
||||
wrapProgram $out/bin/hivexregedit \
|
||||
--set PERL5LIB "$out/${perlPackages.perl.libPrefix}" \
|
||||
--prefix "PATH" : "$out/bin"
|
||||
@@ -58,6 +63,16 @@ stdenv.mkDerivation rec {
|
||||
--prefix "PATH" : "$out/bin"
|
||||
'';
|
||||
|
||||
doInstallCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
|
||||
|
||||
installCheckPhase = ''
|
||||
runHook preInstallCheck
|
||||
|
||||
test "$(PATH=/nonexistent "$out/bin/hivexget" images/special '\abcd_äöüß' 'abcd_äöüß')" = 0
|
||||
|
||||
runHook postInstallCheck
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Windows registry hive extraction library";
|
||||
license = lib.licenses.lgpl2Only;
|
||||
|
||||
Reference in New Issue
Block a user