1 { lib, stdenv, fetchCrate, rustPlatform, CoreFoundation, Security }:
3 rustPlatform.buildRustPackage rec {
9 hash = "sha256-zafRwiXfRACT6G408pXLCk7t6akabOs1VFLRF9SeNWI=";
12 cargoHash = "sha256-86ecnwDDVvgXgBBodP2rSZOn+R52Jap8RCKILttGOn8=";
14 buildInputs = lib.optionals stdenv.hostPlatform.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";