Commit c7fdde91 authored by ghpzin's avatar ghpzin
Browse files

vsftpd: cleanup

- replace `rec` with `finalAttrs`
- remove `with lib;` from `meta`
- replace `sha256` with `hash`
parent cf73a5c9
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -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;
  };
}
})