1 { lib, stdenv, fetchCrate, rustPlatform, CoreFoundation, Security }:
3 rustPlatform.buildRustPackage rec {
9 sha256 = "sha256-Vs+LcvGXcFT0kcZHtLv3T+4xV88kP02r9wDC5hBOZCg=";
12 cargoHash = "sha256-DbFvsOLJ+diLzQXzl6csuVMqjBbI3z+vO37HQ/WnLR4=";
14 buildInputs = lib.optionals stdenv.isDarwin [ CoreFoundation Security ];
16 # Tests fail because they expect a test WASM plugin. Tests already run for
17 # every commit upstream on GitHub Actions
21 description = "Code formatting platform written in Rust";
23 dprint is a pluggable and configurable code formatting platform written in Rust.
24 It offers multiple WASM plugins to support various languages. It's written in
25 Rust, so it’s small, fast, and portable.
27 changelog = "https://github.com/dprint/dprint/releases/tag/${version}";
28 homepage = "https://dprint.dev";
29 license = licenses.mit;
30 maintainers = with maintainers; [ khushraj ];
31 mainProgram = "dprint";