From c28e22852faed039e14d4734f7e39b6bf6cc2fd7 Mon Sep 17 00:00:00 2001 From: Lein Matsumaru Date: Fri, 27 Jun 2025 08:52:34 +0000 Subject: [PATCH] exploitdb: cleanup - rev -> tag - use finalAttrs instead of rec - remove `with lib;` --- pkgs/by-name/ex/exploitdb/package.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/ex/exploitdb/package.nix b/pkgs/by-name/ex/exploitdb/package.nix index 768b8494c505..5e78747dcc88 100644 --- a/pkgs/by-name/ex/exploitdb/package.nix +++ b/pkgs/by-name/ex/exploitdb/package.nix @@ -5,14 +5,14 @@ makeWrapper, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "exploitdb"; version = "2025-06-27"; src = fetchFromGitLab { owner = "exploit-database"; repo = "exploitdb"; - rev = "refs/tags/${version}"; + tag = finalAttrs.version; hash = "sha256-Gm3SRdt6a3hSe64iP7j+5HQ5bGZ6s3eKvxFlCkQWZHo="; }; @@ -26,19 +26,19 @@ stdenv.mkDerivation rec { runHook postInstall ''; - meta = with lib; { + meta = { description = "Archive of public exploits and corresponding vulnerable software"; homepage = "https://gitlab.com/exploit-database/exploitdb"; - license = with licenses; [ + license = with lib.licenses; [ gpl2Plus gpl3Plus mit ]; - maintainers = with maintainers; [ + maintainers = with lib.maintainers; [ applePrincess fab ]; mainProgram = "searchsploit"; - platforms = platforms.unix; + platforms = lib.platforms.unix; }; -} +})