2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchCrate
|
|
|
|
, stdenv
|
|
|
|
, Security
|
|
|
|
, withLsp ? true
|
|
|
|
}:
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2022-08-12 12:06:08 +00:00
|
|
|
pname = "taplo";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "0.7.2";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
2022-08-12 12:06:08 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "taplo-cli";
|
2022-10-30 15:09:59 +00:00
|
|
|
sha256 = "sha256-AiX6ruiyyWt33G49dD9ozFXq+3efEMzJoeWVfP5UGGo=";
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
cargoSha256 = "sha256-Uvc/1CE8eaYfelJ3U8zxF2HVx9P7G1ZVQB5tCvQDTac=";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin Security;
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
buildFeatures = lib.optional withLsp "lsp";
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A TOML toolkit written in Rust";
|
|
|
|
homepage = "https://taplo.tamasfe.dev";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|