2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchCrate
|
2024-04-21 15:54:59 +00:00
|
|
|
, pkg-config
|
|
|
|
, openssl
|
2022-08-12 12:06:08 +00:00
|
|
|
, 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";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.9.0";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
2022-08-12 12:06:08 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "taplo-cli";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-vvb00a6rppx9kKx+pzObT/hW/IsG6RyYFEDp9M5gvqc=";
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
cargoHash = "sha256-oT7U9htu7J22MqLZb+YXohlB1CVGxHGQvHJu18PeLf8=";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
] ++ lib.optionals 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
|
|
|
};
|
|
|
|
}
|