Unverified Commit a39f180c authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

lenspect: init at 1.0.2 (#453585)

parents 8e934c1a b2155863
Loading
Loading
Loading
Loading
+65 −0
Original line number Diff line number Diff line
{
  blueprint-compiler,
  desktop-file-utils,
  fetchFromGitHub,
  gobject-introspection,
  lib,
  libadwaita,
  libsecret,
  meson,
  ninja,
  nix-update-script,
  pkg-config,
  python3Packages,
  wrapGAppsHook4,
}:

python3Packages.buildPythonApplication rec {
  pname = "lenspect";
  version = "1.0.2";
  pyproject = false;

  src = fetchFromGitHub {
    owner = "vmkspv";
    repo = "lenspect";
    tag = "v${version}";
    hash = "sha256-R3Y1t4qEXY7zuYZENzwiAoW1fDEN/YiatnFLPUOeRUE=";
  };

  nativeBuildInputs = [
    blueprint-compiler
    desktop-file-utils
    gobject-introspection
    meson
    ninja
    pkg-config
    wrapGAppsHook4
  ];

  buildInputs = [
    libadwaita
    libsecret
  ];

  dependencies = with python3Packages; [
    pygobject3
  ];

  dontWrapGApps = true;

  preFixup = ''
    makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
  '';

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Lightweight security threat scanner intended to make malware detection more accessible and efficient";
    homepage = "https://github.com/vmkspv/lenspect";
    changelog = "https://github.com/vmkspv/lenspect/releases/tag/v${version}";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ RoGreat ];
    mainProgram = "lenspect";
    platforms = lib.platforms.linux;
  };
}