git.iko.soy/typeable/nixpkgs
on master help sign in
dprint: init at 0.15.0
commitb5b2f19c222fc8ca6cc792746e7af8ba8568b0f3 authorKhushraj Rathod <khushraj.rathod@gmail.com> dateWed 30 Jun 2021, 20:18 (5 years ago) parent448bfa6
2 files changed+32
pkgs/development/tools/dprint/default.nix+30 pkgs/top-level/all-packages.nix+2
pkgs/development/tools/dprint/default.nixnew file+30
@@ -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+}
pkgs/top-level/all-packages.nix+2
@@ -13299,6 +13299,8 @@ in
1329913299 inherit (llvmPackages_11) llvm libclang;
1330013300 };
1330113301
13302+ dprint = callPackage ../development/tools/dprint { };
13303+
1330213304 libcxx = llvmPackages.libcxx;
1330313305 libcxxabi = llvmPackages.libcxxabi;
1330413306