mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 20:18:08 +00:00
clamtk: wrap with wrapGAppsHook
Fix crashing due to missing icon files with wrapGAppsHook Pass extra makeWrapper arguments through gappsWrapperArgs.
This commit is contained in:
parent
067cd41338
commit
e7543c18c9
@ -1,7 +1,7 @@
|
||||
{ lib
|
||||
, perlPackages
|
||||
, fetchFromGitHub
|
||||
, makeWrapper
|
||||
, wrapGAppsHook
|
||||
, gobject-introspection
|
||||
, perl
|
||||
, clamav
|
||||
@ -18,7 +18,7 @@ perlPackages.buildPerlPackage rec {
|
||||
hash = "sha256-o6OaXOXLykTUuF/taKnEhZRV04/3nlU5aNY05ANr1Ko=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper gobject-introspection ];
|
||||
nativeBuildInputs = [ wrapGAppsHook gobject-introspection ];
|
||||
buildInputs = [ perl clamav ];
|
||||
propagatedBuildInputs = with perlPackages; [ Glib LWP LWPProtocolHttps TextCSV JSON LocaleGettext Gtk3 ];
|
||||
|
||||
@ -51,11 +51,17 @@ perlPackages.buildPerlPackage rec {
|
||||
install -D images/* -t $out/share/pixmaps
|
||||
install -D clamtk.1.gz -t $out/share/man/man1
|
||||
install -D -m755 clamtk -t $out/bin
|
||||
wrapProgram $out/bin/clamtk --prefix PERL5LIB : $PERL5LIB --set GI_TYPELIB_PATH "$GI_TYPELIB_PATH"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
gappsWrapperArgs+=(
|
||||
--prefix PERL5LIB : $PERL5LIB
|
||||
--set GI_TYPELIB_PATH "$GI_TYPELIB_PATH"
|
||||
)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = ''
|
||||
Easy to use, lightweight front-end for ClamAV (Clam Antivirus).
|
||||
|
Loading…
Reference in New Issue
Block a user