exploitdb: refactor

- format with nixfmt
This commit is contained in:
Fabian Affolter 2024-04-09 10:47:11 +02:00
parent fb9b660f90
commit f2eb94071a
1 changed files with 17 additions and 11 deletions

View File

@ -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;
};