vsftpd: cleanup

- replace `rec` with `finalAttrs`
- remove `with lib;` from `meta`
- replace `sha256` with `hash`

ghpzin c7fdde91 cf73a5c9

Changed files
+8 -8
pkgs
by-name
vs
vsftpd
+8 -8
pkgs/by-name/vs/vsftpd/package.nix
···
nixosTests,
}:
-
stdenv.mkDerivation rec {
pname = "vsftpd";
version = "3.0.5";
src = fetchurl {
-
url = "https://security.appspot.com/downloads/vsftpd-${version}.tar.gz";
-
sha256 = "sha256-JrYCrkVLC6bZnvRKCba54N+n9nIoEGc23x8njHC8kdM=";
};
buildInputs = [
···
tests = { inherit (nixosTests) vsftpd; };
};
-
meta = with lib; {
description = "Very secure FTP daemon";
mainProgram = "vsftpd";
-
license = licenses.gpl2Only;
-
maintainers = with maintainers; [ peterhoeg ];
-
platforms = platforms.linux;
};
-
}
···
nixosTests,
}:
+
stdenv.mkDerivation (finalAttrs: {
pname = "vsftpd";
version = "3.0.5";
src = fetchurl {
+
url = "https://security.appspot.com/downloads/vsftpd-${finalAttrs.version}.tar.gz";
+
hash = "sha256-JrYCrkVLC6bZnvRKCba54N+n9nIoEGc23x8njHC8kdM=";
};
buildInputs = [
···
tests = { inherit (nixosTests) vsftpd; };
};
+
meta = {
description = "Very secure FTP daemon";
mainProgram = "vsftpd";
+
license = lib.licenses.gpl2Only;
+
maintainers = with lib.maintainers; [ peterhoeg ];
+
platforms = lib.platforms.linux;
};
+
})