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";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.8.1";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
2022-08-12 12:06:08 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "taplo-cli";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-evNW6OA7rArj0TvOaQgktcQy0tWnel3ZL+ic78e6lOk=";
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
cargoSha256 = "sha256-jeLjoqEieR96mUZQmQtv7P78lmOaF18ruVhZLi/TieQ=";
|
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 ];
|
2023-08-10 07:59:29 +00:00
|
|
|
mainProgram = "taplo";
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
}
|