Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
hivex: add perl to wrapper and libiconv dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Amar1729 committed Mar 31, 2019
1 parent eaff327 commit 3dbeaad
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions pkgs/development/libraries/hivex/default.nix
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, autoreconfHook, makeWrapper
, perlPackages, libxml2 }:
, perlPackages, libxml2, libiconv }:

stdenv.mkDerivation rec {
name = "hivex-${version}";
Expand All @@ -15,19 +15,24 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
autoreconfHook makeWrapper libxml2
] ++ (with perlPackages; [ perl IOStringy ]);
]
++ (with perlPackages; [ perl IOStringy ])
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv ];

postInstall = ''
for bin in $out/bin/*; do
wrapProgram "$bin" --prefix "PATH" : "$out/bin"
done
wrapProgram $out/bin/hivexregedit \
--set PERL5LIB "$out/${perlPackages.perl.libPrefix}" \
--prefix "PATH" : "$out/bin"
wrapProgram $out/bin/hivexml \
--prefix "PATH" : "$out/bin"
'';

meta = with stdenv.lib; {
description = "Windows registry hive extraction library";
license = licenses.lgpl2;
homepage = https://github.com/libguestfs/hivex;
maintainers = with maintainers; [offline];
platforms = platforms.linux;
platforms = platforms.linux ++ platforms.darwin;
};
}

0 comments on commit 3dbeaad

Please sign in to comment.