git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #128784 from KhushrajRathod/add-dprint
commit539fae1fc17bc0297d35314296eed4b42f9966f1 authorSandro <sandro.jaeckel@gmail.com> dateTue 6 Jul 2021, 00:32 (5 years ago) parentfdde336b5b2f19
3 files changed+42
maintainers/maintainer-list.nix+10 pkgs/development/tools/dprint/default.nix+30 pkgs/top-level/all-packages.nix+2
maintainers/maintainer-list.nix+10
@@ -5438,6 +5438,16 @@
54385438 githubId = 788813;
54395439 name = "Bryan Gardiner";
54405440 };
5441+ khushraj = {
5442+ email = "khushraj.rathod@gmail.com";
5443+ github = "KhushrajRathod";
5444+ githubId = 44947946;
5445+ name = "Khushraj Rathod";
5446+ keys = [{
5447+ longkeyid = "rsa2048/0xB77B2A40E7702F19";
5448+ fingerprint = "1988 3FD8 EA2E B4EC 0A93 1E22 B77B 2A40 E770 2F19";
5449+ }];
5450+ };
54415451 KibaFox = {
54425452 email = "kiba.fox@foxypossibilities.com";
54435453 github = "KibaFox";
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
@@ -13314,6 +13314,8 @@ in
1331413314 inherit (llvmPackages_11) llvm libclang;
1331513315 };
1331613316
13317+ dprint = callPackage ../development/tools/dprint { };
13318+
1331713319 libcxx = llvmPackages.libcxx;
1331813320 libcxxabi = llvmPackages.libcxxabi;
1331913321