hivex: fix hivexget runtime dependencies (#560196)

This commit is contained in:
Peder Bergebakken Sundt
2026-10-29 19:57:26 +00:00
committed by GitHub

View File

@@ -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;