@@ -0,0 +1,30 @@
1+{ lib, fetchCrate, rustPlatform }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "dprint";
5+ version = "0.15.0";
6+
7+ src = fetchCrate {
8+ inherit pname version;
9+ sha256 = "sha256-1DUGp+HiiY03fyZ+b8hNUBIfuQV5Z/gEcOxc/vG3YiA=";
10+ };
11+
12+ cargoSha256 = "sha256-twFXA8A+vP1n6IFJO78fKNs+FC2ui46rj1JmJ/eq3wc=";
13+
14+ # Tests fail because they expect a test WASM plugin. Tests already run for
15+ # every commit upstream on GitHub Actions
16+ doCheck = false;
17+
18+ meta = with lib; {
19+ description = "Code formatting platform written in Rust";
20+ longDescription = ''
21+ dprint is a pluggable and configurable code formatting platform written in Rust.
22+ It offers multiple WASM plugins to support various languages. It's written in
23+ Rust, so it’s small, fast, and portable.
24+ '';
25+ changelog = "https://github.com/dprint/dprint/releases/tag/${version}";
26+ homepage = "https://dprint.dev";
27+ license = licenses.mit;
28+ maintainers = with maintainers; [ khushraj ];
29+ };
30+}