diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index e829d69e0867..59cf754af9dc 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -5185,6 +5185,12 @@ githubId = 245394; name = "Hannu Hartikainen"; }; + dandedotdev = { + email = "contact@dande.dev"; + github = "dandedotdev"; + githubId = 106054083; + name = "Dandelion Huang"; + }; dandellion = { email = "daniel@dodsorf.as"; matrix = "@dandellion:dodsorf.as"; diff --git a/pkgs/by-name/ye/yew-fmt/package.nix b/pkgs/by-name/ye/yew-fmt/package.nix new file mode 100644 index 000000000000..6605936287e2 --- /dev/null +++ b/pkgs/by-name/ye/yew-fmt/package.nix @@ -0,0 +1,33 @@ +{ + lib, + rustfmt, + rustPlatform, + fetchFromGitHub, + nix-update-script, +}: + +rustPlatform.buildRustPackage rec { + pname = "yew-fmt"; + version = "0.5.3"; + + src = fetchFromGitHub { + owner = "its-the-shrimp"; + repo = "yew-fmt"; + tag = "v${version}"; + hash = "sha256-Ck6WA6ROm8APTsgoxbVGUqoblc5awW+hmmzcy4ZFoBM="; + }; + + cargoHash = "sha256-Fp8MT1LJ1EpqwEZ+SpOomqZ7we47w2S5ExkB966Z3r0="; + nativeCheckInputs = [ rustfmt ]; + passthru.updateScript = nix-update-script { }; + useFetchCargoVendor = true; + + meta = { + description = "Code formatter for the Yew framework"; + mainProgram = "yew-fmt"; + homepage = "https://github.com/its-the-shrimp/yew-fmt"; + changelog = "https://github.com/its-the-shrimp/yew-fmt/releases/tag/v${version}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.dandedotdev ]; + }; +}