Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sploitscan: init at 0.9.1 #319499

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nixos/modules/services/desktop-managers/lomiri.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ in {
morph-browser
qtmir # not having its desktop file for Xwayland available causes any X11 application to crash the session
suru-icon-theme
telephony-service
# telephony-service # currently broken: https://github.com/NixOS/nixpkgs/pull/314043
]);
};

Expand Down Expand Up @@ -79,7 +79,7 @@ in {
] ++ lib.optionals (config.hardware.pulseaudio.enable || config.services.pipewire.pulse.enable) [
ayatana-indicator-sound
]) ++ (with pkgs.lomiri; [
telephony-service
# telephony-service # currently broken: https://github.com/NixOS/nixpkgs/pull/314043
] ++ lib.optionals config.networking.networkmanager.enable [
lomiri-indicator-network
]);
Expand Down
2 changes: 1 addition & 1 deletion nixos/tests/ayatana-indicators.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ in {
ayatana-indicator-sound
] ++ (with pkgs.lomiri; [
lomiri-indicator-network
telephony-service
# telephony-service # currently broken: https://github.com/NixOS/nixpkgs/pull/314043
]);
};

Expand Down
45 changes: 45 additions & 0 deletions pkgs/by-name/sp/sploitscan/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{ lib
, python3
, fetchFromGitHub
}:

python3.pkgs.buildPythonApplication rec {
pname = "sploitscan";
version = "0.9.1";
pyproject = true;

src = fetchFromGitHub {
owner = "xaitax";
repo = "SploitScan";
rev = "refs/tags/v${version}";
hash = "sha256-l2nLqQoM5TuOezobipBV+s/nXTw37xhop/xpipLL1Bs=";
};

pythonRelaxDeps = [
"openai"
"requests"
];

build-system = with python3.pkgs; [
setuptools
];

nativeBuildInputs = with python3.pkgs; [ pythonRelaxDepsHook ];

dependencies = with python3.pkgs; [
jinja2
openai
requests
];

pythonImportsCheck = [ "sploitscan" ];

meta = with lib; {
description = "Cybersecurity utility designed to provide detailed information on vulnerabilities and associated exploits";
homepage = "https://github.com/xaitax/SploitScan";
changelog = "https://github.com/xaitax/SploitScan/releases/tag/v${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
mainProgram = "sploitscan";
};
}
2 changes: 1 addition & 1 deletion pkgs/desktops/lomiri/applications/lomiri/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ stdenv.mkDerivation (finalAttrs: {
lomiri-settings-components
lomiri-thumbnailer
qtmultimedia
telephony-service
# telephony-service # currently broken: https://github.com/NixOS/nixpkgs/pull/314043
];

nativeCheckInputs = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeBool "BUILD_DOC" true) # lacks QML docs, needs qdoc: https://github.com/NixOS/nixpkgs/pull/245379
];

doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
# Currently broken: https://github.com/NixOS/nixpkgs/pull/314043
doCheck = false;

postInstall = ''
substituteInPlace $out/etc/dbus-1/services/com.lomiri.connectivity1.service \
Expand Down
2 changes: 2 additions & 0 deletions pkgs/desktops/lomiri/services/telephony-service/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -197,5 +197,7 @@ stdenv.mkDerivation (finalAttrs: {
license = licenses.gpl3Only;
maintainers = teams.lomiri.members;
platforms = platforms.linux;
# Completely broken until https://github.com/NixOS/nixpkgs/pull/314043 is merged
broken = true;
};
})