unftp: init at 0.15.1 (#448398)

This commit is contained in:
Yohann Boniface
2025-10-04 01:56:12 +00:00
committed by GitHub
+38
View File
@@ -0,0 +1,38 @@
{
fetchFromGitHub,
lib,
nix-update-script,
versionCheckHook,
rustPlatform,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "unftp";
version = "0.15.1";
src = fetchFromGitHub {
owner = "bolcom";
repo = "unftp";
tag = "v${finalAttrs.version}";
hash = "sha256-M6+4AYE2Wls2+LoPx3LSLHIWgWu9SMOIaNLVbXWKqGY=";
};
cargoHash = "sha256-P3TjRzo1TJE1LW+jbF0HOWeVXYsvwaZ+5CI+kH4jZNQ=";
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "FTP(S) server with a couple of twists written in Rust";
homepage = "https://unftp.rs/";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ aiyion ];
mainProgram = "unftp";
};
})