Unverified Commit a3a15d72 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #268870 from ShamrockLee/clamtk-icon

clamtk: wrap with wrapGAppsHook
parents 638ff1bf 0fd6535b
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
{ 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).
@@ -63,7 +69,7 @@ perlPackages.buildPerlPackage rec {
    license = licenses.gpl1Plus;
    homepage = "https://github.com/dave-theunsub/clamtk";
    platforms = platforms.linux;
    maintainers = with maintainers; [ jgarcia ];
    maintainers = with maintainers; [ jgarcia ShamrockLee ];
  };

}