Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / taplo / default.nix
blob43026331f5c756ac5de1ce763eec561ee69472d0
1 { lib
2 , rustPlatform
3 , fetchCrate
4 , stdenv
5 , Security
6 , withLsp ? true
7 }:
9 rustPlatform.buildRustPackage rec {
10   pname = "taplo";
11   version = "0.8.1";
13   src = fetchCrate {
14     inherit version;
15     pname = "taplo-cli";
16     sha256 = "sha256-evNW6OA7rArj0TvOaQgktcQy0tWnel3ZL+ic78e6lOk=";
17   };
19   cargoSha256 = "sha256-jeLjoqEieR96mUZQmQtv7P78lmOaF18ruVhZLi/TieQ=";
21   buildInputs = lib.optional stdenv.isDarwin Security;
23   buildFeatures = lib.optional withLsp "lsp";
25   meta = with lib; {
26     description = "A TOML toolkit written in Rust";
27     homepage = "https://taplo.tamasfe.dev";
28     license = licenses.mit;
29     maintainers = with maintainers; [ figsoda ];
30     mainProgram = "taplo";
31   };