at 23.05-pre 32 lines 1.1 kB view raw
1{ lib, stdenv, fetchCrate, rustPlatform, Security }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "dprint"; 5 version = "0.33.0"; 6 7 src = fetchCrate { 8 inherit pname version; 9 sha256 = "sha256-7UgE8/FPEG3VUtQLdlvfaFx9N6iIci5eu+Z2HBo+7c0="; 10 }; 11 12 cargoSha256 = "sha256-/7YUbbuoN/qUIHk95ndaKjHZdJOPNTqZqOBvM2dHvoc="; 13 14 buildInputs = lib.optionals stdenv.isDarwin [ Security ]; 15 16 # Tests fail because they expect a test WASM plugin. Tests already run for 17 # every commit upstream on GitHub Actions 18 doCheck = false; 19 20 meta = with lib; { 21 description = "Code formatting platform written in Rust"; 22 longDescription = '' 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 its small, fast, and portable. 26 ''; 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 }; 32}