Merge pull request #248148 from figsoda/leptosfmt

This commit is contained in:
figsoda 2023-08-09 16:43:11 -04:00 committed by GitHub
commit 697d536087
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "leptosfmt";
version = "0.1.12";
src = fetchFromGitHub {
owner = "bram209";
repo = "leptosfmt";
rev = version;
hash = "sha256-RR4gwmYna/mvUw5akQutWKaUCWzCjK512gynR9Pddd0=";
};
cargoHash = "sha256-6du44SfH0dT1gWVFluB3+AA3GUzwN7Sjh03rKhSRKCM=";
meta = with lib; {
description = "A formatter for the leptos view! macro";
homepage = "https://github.com/bram209/leptosfmt";
changelog = "https://github.com/bram209/leptosfmt/blob/${src.rev}/CHANGELOG.md";
license = with licenses; [ asl20 mit ];
maintainers = with maintainers; [ figsoda ];
};
}

View file

@ -17139,6 +17139,8 @@ with pkgs;
devspace = callPackage ../development/tools/misc/devspace { };
leptosfmt = callPackage ../development/tools/rust/leptosfmt { };
maturin = callPackage ../development/tools/rust/maturin {
inherit (darwin.apple_sdk.frameworks) Security;
};