From f2eb94071aa6beba0e6435809e6c68f6a77e0636 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 9 Apr 2024 10:47:11 +0200 Subject: [PATCH] exploitdb: refactor - format with nixfmt --- pkgs/tools/security/exploitdb/default.nix | 28 ++++++++++++++--------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/pkgs/tools/security/exploitdb/default.nix b/pkgs/tools/security/exploitdb/default.nix index 57eaa6c0768a..23d7ed0f8657 100644 --- a/pkgs/tools/security/exploitdb/default.nix +++ b/pkgs/tools/security/exploitdb/default.nix @@ -1,7 +1,8 @@ -{ lib -, stdenv -, fetchFromGitLab -, makeWrapper +{ + lib, + stdenv, + fetchFromGitLab, + makeWrapper, }: stdenv.mkDerivation rec { @@ -10,14 +11,12 @@ stdenv.mkDerivation rec { src = fetchFromGitLab { owner = "exploit-database"; - repo = pname; + repo = "exploitdb"; rev = "refs/tags/${version}"; hash = "sha256-dNWApfe7Oxpm9SGX4L1lXpM2DUWXtLsg5RF+OkGlWcs="; }; - nativeBuildInputs = [ - makeWrapper - ]; + nativeBuildInputs = [ makeWrapper ]; installPhase = '' runHook preInstall @@ -28,10 +27,17 @@ stdenv.mkDerivation rec { ''; meta = with lib; { - homepage = "https://gitlab.com/exploit-database/exploitdb"; description = "Archive of public exploits and corresponding vulnerable software"; - license = with licenses; [ gpl2Plus gpl3Plus mit ]; - maintainers = with maintainers; [ applePrincess fab ]; + homepage = "https://gitlab.com/exploit-database/exploitdb"; + license = with licenses; [ + gpl2Plus + gpl3Plus + mit + ]; + maintainers = with maintainers; [ + applePrincess + fab + ]; mainProgram = "searchsploit"; platforms = platforms.unix; };