Merge pull request #58638 from Amar1729/darwin-fix/hivex
Fix hivex for darwin
This commit is contained in:
commit
698af96454
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, autoreconfHook, makeWrapper
|
{ stdenv, fetchurl, pkgconfig, autoreconfHook, makeWrapper
|
||||||
, perlPackages, libxml2 }:
|
, perlPackages, libxml2, libiconv }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "hivex-${version}";
|
name = "hivex-${version}";
|
||||||
@ -15,12 +15,17 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
autoreconfHook makeWrapper libxml2
|
autoreconfHook makeWrapper libxml2
|
||||||
] ++ (with perlPackages; [ perl IOStringy ]);
|
]
|
||||||
|
++ (with perlPackages; [ perl IOStringy ])
|
||||||
|
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
for bin in $out/bin/*; do
|
wrapProgram $out/bin/hivexregedit \
|
||||||
wrapProgram "$bin" --prefix "PATH" : "$out/bin"
|
--set PERL5LIB "$out/${perlPackages.perl.libPrefix}" \
|
||||||
done
|
--prefix "PATH" : "$out/bin"
|
||||||
|
|
||||||
|
wrapProgram $out/bin/hivexml \
|
||||||
|
--prefix "PATH" : "$out/bin"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
@ -28,6 +33,6 @@ stdenv.mkDerivation rec {
|
|||||||
license = licenses.lgpl2;
|
license = licenses.lgpl2;
|
||||||
homepage = https://github.com/libguestfs/hivex;
|
homepage = https://github.com/libguestfs/hivex;
|
||||||
maintainers = with maintainers; [offline];
|
maintainers = with maintainers; [offline];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user