From f54aaa5ba85f98857ac58028f746ec484c3c4ea4 Mon Sep 17 00:00:00 2001 From: matthewcroughan Date: Thu, 14 Mar 2024 01:01:04 +0000 Subject: [PATCH] rs-tftpd: init at 0.2.12 Co-authored-by: Adam C. Stephens <2071575+adamcstephens@users.noreply.github.com> --- pkgs/by-name/rs/rs-tftpd/package.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pkgs/by-name/rs/rs-tftpd/package.nix diff --git a/pkgs/by-name/rs/rs-tftpd/package.nix b/pkgs/by-name/rs/rs-tftpd/package.nix new file mode 100644 index 000000000000..43b010913ea8 --- /dev/null +++ b/pkgs/by-name/rs/rs-tftpd/package.nix @@ -0,0 +1,26 @@ +{ lib +, rustPlatform +, fetchFromGitHub +}: + +rustPlatform.buildRustPackage rec { + pname = "rs-tftpd"; + version = "0.2.12"; + + src = fetchFromGitHub { + owner = "altugbakan"; + repo = "rs-tftpd"; + rev = version; + hash = "sha256-H67lXwX+4guHpdq0yTHe6tl1NxC41saNrM9g+yH5otk="; + }; + + cargoHash = "sha256-B5kduRuX9Lcdd31yj4PsDo8fyy0nabtmsiAXvc8RlYo="; + + meta = with lib; { + description = "TFTP Server Daemon implemented in Rust"; + homepage = "https://github.com/altugbakan/rs-tftpd"; + license = licenses.mit; + maintainers = with maintainers; [ matthewcroughan ]; + mainProgram = "tftpd"; + }; +}