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
|
2024-09-19 14:19:46 +00:00
|
|
|
, darwin
|
2022-08-12 12:06:08 +00:00
|
|
|
, withLsp ? true
|
|
|
|
}:
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2022-08-12 12:06:08 +00:00
|
|
|
pname = "taplo";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.9.3";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
2022-08-12 12:06:08 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "taplo-cli";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-dNGQbaIfFmgXh2AOcaE74BTz7/jaiBgU7Y1pkg1rV7U=";
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-iucjewjRCunKxKCqeZwf7bdEo7+aN9hfWPwUAJhaSq0=";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2024-09-19 14:19:46 +00:00
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
2024-04-21 15:54:59 +00:00
|
|
|
];
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "TOML toolkit written in Rust";
|
2021-08-05 21:33:18 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|