From c7fdde913568d02976566df3be705b497553bae8 Mon Sep 17 00:00:00 2001 From: ghpzin Date: Sat, 27 Sep 2025 14:25:58 +0300 Subject: [PATCH] vsftpd: cleanup - replace `rec` with `finalAttrs` - remove `with lib;` from `meta` - replace `sha256` with `hash` --- pkgs/by-name/vs/vsftpd/package.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/vs/vsftpd/package.nix b/pkgs/by-name/vs/vsftpd/package.nix index ef58bf50b021..1e9b8c79d155 100644 --- a/pkgs/by-name/vs/vsftpd/package.nix +++ b/pkgs/by-name/vs/vsftpd/package.nix @@ -11,13 +11,13 @@ nixosTests, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "vsftpd"; version = "3.0.5"; src = fetchurl { - url = "https://security.appspot.com/downloads/vsftpd-${version}.tar.gz"; - sha256 = "sha256-JrYCrkVLC6bZnvRKCba54N+n9nIoEGc23x8njHC8kdM="; + url = "https://security.appspot.com/downloads/vsftpd-${finalAttrs.version}.tar.gz"; + hash = "sha256-JrYCrkVLC6bZnvRKCba54N+n9nIoEGc23x8njHC8kdM="; }; buildInputs = [ @@ -64,11 +64,11 @@ stdenv.mkDerivation rec { tests = { inherit (nixosTests) vsftpd; }; }; - meta = with lib; { + meta = { description = "Very secure FTP daemon"; mainProgram = "vsftpd"; - license = licenses.gpl2Only; - maintainers = with maintainers; [ peterhoeg ]; - platforms = platforms.linux; + license = lib.licenses.gpl2Only; + maintainers = with lib.maintainers; [ peterhoeg ]; + platforms = lib.platforms.linux; }; -} +})